Application developed in Next.js consuming a Laravel API. Improve the living condition of homeless animals with a small amount, register/adopt new pets and check the adopted pets report.
- Check out the application in action at rangel-pets.vercel.app
Reactjs/Nextjs
PHP/Laravel
#Clone the repository
$ git clone https://github.com/rangel-pci/adoteUmPet
#### FrontEnd step by step ####
$ cd adoteUmPet/frontend
$ npm install
$ npm run dev
Change the api baseUrl to you backend url in adoteUmPet/frontend/src/data/services/api.ts.
After starting the application, the terminal will show you the address of the application, something like "http://localhost:3000".
#### BackEnd step by step ####
$ cd adoteUmPet/backend
$ composer require
Rename .env.example file to .env and configure with your database information, in this project i used SQLite but you can also use another DBMS like MySQL.
$ php artisan migrate
$ php artisan storage:link
$ php artisan serve
After starting the application, the terminal will show you the address of the application, something like "http://127.0.0.1:8000".