Skip to content

get your latest 100 Facebook image using Facebook SDK.

Notifications You must be signed in to change notification settings

chathurakodikara/Photo9

Repository files navigation

About App

Everyone has a Facebook account so you know it is imposible to track what we posted. the app provided the 100 photos that you posted of Facebook. You can choose the best 9 photos and add to your own photo collection

The application configured as multitenant application. User only show their photos. I have use Multitenantable traits in the Photo model

Tech Pack

API Documntation

Packages in the project

How to Configure

Step 1

  • Clone git repo
:~# git clone https://github.com/chathurakodikara/Photo9.git
  • Go to your folder and open with a code editor (VS code, Sublime text etc)
  • Use CMD and run composer install to install php packages
:~# composer install
  • Then run npm install for node packages
:~# npm install && npm run dev
  • Migrate database
  • I have provided faker for User and Image model. php artisan db:seed will insert the data
:~# php artisan migrate --seed

Step 2 - time to create the app account

Step 3 - update .env file

  • Feel free to use the sample env file provide with the project
  • Create a database and update your .env file
  • Finaly update your Facebook CLIENT_ID and CLIENT_SECRET. The information can be found in the Facebook developer account you created
:~# FACEBOOK_CLIENT_ID=
:~# FACEBOOK_CLIENT_SECRET=

Step 4

its time run the application and enjoy

:~# php artisan serve

Test Cases

Auth test. it redirects to login route. need a had to import mockey codes

:~# php artisan test --filter OAuthTest

Test own phots in the db

:~# php artisan test --filter PhotoTest

I am working on..

  • I stuck when creating test cases for OAuth. Got an issue with Mockery user and faking the process of login. If someone know where I got wrong. Please let me know. I am keen to lean about it

  • Having a Docker container is grate. I already have a setup with me. However I feel it should improve. The Docker container will coming soon..

Feel free to reach out to me.

About

get your latest 100 Facebook image using Facebook SDK.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published