- PHP 7.2
- Laravel 6.0
- Laravel Passport
- Redis
- Queue
Clone the project via git clone or download the zip file.
Copy contents of .env.example file to .env file. Create a database and connect your database in .env file.
cd into the project directory via terminal and run the following command to install composer packages. When you "composer install", the "php artisan migrate" and "php artisan db:seed" commands will be activated automatically. You don't need to do anything extra;
then run the following command to generate fresh key.
then run the following command to create migrations in the databbase.
run the following command to install passport
finally run the following command to seed the database with dummy content.
- User Login POST
http://localhost:8000/api/login
- User Register POST
http://localhost:8000/api/register
- User Logout POST
http://localhost:8000/api/logout
- User Info GET
http://localhost:8000/api/info
- User Update PUT
http://localhost:8000/api/update
- Campaign List GET
http://localhost:8000/api/campaign
- Campaign Add Campaign POST
http://localhost:8000/api/add-campaign
- Weater List GET
http://localhost:8000/api/weater
- Weater City Weater GET
http://localhost:8000/api/weater/city/{id}
- Weater User Favorite Weater GET
http://localhost:8000/api/weater/user
- Weater User Add Favorite Weater POST
http://localhost:8000/api/weater/user
- Weater User Delete Favorite Weater DELETE
http://localhost:8000/api/weater/user/delete/{id}