This is a monolith web-app for OHL LABPRO 2023. This service fepends on this backend service app.
13521044 Rachel Gabriela Chen
$ composer install
Run the API service
- Copy
.env.local.example
into.env
and fill with your local env variables. The API_URL variable is the URL where the backend service is running.
# development
$ npm run dev #to pack the frontend assets
$ php artisan migrate
$ php artisan serve
- Has to be run via wsl/linux
- Copy
.env.sail.example
into.env
. Modify only the API_URL. If running via wsl, the host should be windows' IP.
$ npm run dev #to pack the frontend assets
$ ./vendor/bin/sail up -d
$ ./vendor/bin/sail artisan migrate
The MVC pattern is the core architectural design pattern in Laravel. It helps in separating the application logic into tModel, View, Controller
- Laravel Framework 10.15.0
- Bootstrap
- JQuery
- TailwindCSS
- mysql
ENDPOINT | METHOD |
---|---|
/auth/login | POST |
/auth/register | POST |
/auth/logout | POST |
/auth/refresh | POST |
/buy-item | POST |
/invoices | GET |
/ | GET |
/login | GET |
/register | GET |
/item/:id | GET |
/purchase-history | GET |