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
- Laravel 8.
- Livewire for better user experience.
- Tailwind CSS for styles.
- MySQL as Database.
- Laravel Socialite for social login.
- barryvdh's laravel-debugbar.
- Quickly make outgoing HTTP requests Guzzle HTTP client.
- 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
- 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=
its time run the application and enjoy
:~# php artisan serve
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 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..
- email: [email protected]
- GitHub.