Backend of the api
- install composer and git
- clone the repository from gitlab Or u can just download it
git clone https://gitlab.com/cars-services-app/backend.
- move the project to
www
folder in wamp directory orhtdocs
folder in xamp
Navigate to the project root directory and Run composer install to download project dependencies:
composer install
update the .env
file found int the project root directory, to add database and email environment variables
- add database connection environment variables
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=car_boda_app
DB_USERNAME=root
DB_PASSWORD=
- add email environment variables
MAIL_MAILER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=kamasupaul1@gmail.com
MAIL_PASSWORD=uqokymgepphsvbxd
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS=kamasupaul1@gmail.com
MAIL_FROM_NAME="${APP_NAME}"
- setup a mysql database for the project ( use credentials that you put in the .env file)
- Run the migrations Make sure wamp or xamp are installed and running
php artisan migrate
Start the server with the command
php artisan serve
You can now access the api at the url http://127.0.0.1:8000/api/
and the documentation for the api routes
- Redoc documentation for routes is found at http://127.0.0.1:8000/api/documentation
- Swagger/Open api docs for the routes at http://127.0.0.1:8000/api/console
Check out the develop brach and start coding.
git checkout develop
😃 Happy coding. We look forward to a successful journey with you! Welcome aboard!
Congratulations on being part of the team!