Description

This is a monolith web-app for OHL LABPRO 2023. This service fepends on this backend service app.

Author

13521044 Rachel Gabriela Chen

Installation

$ composer install

Running the app

Run the API service

local

  • 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

with docker

  • 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

Register

image

Login

image

Dashboard

image

Buy Item

image

Purchase History

image

Design Patterns

Model-View-Controller (MVC) pattern:

The MVC pattern is the core architectural design pattern in Laravel. It helps in separating the application logic into tModel, View, Controller

Tech Stack

  • Laravel Framework 10.15.0
  • Bootstrap
  • JQuery
  • TailwindCSS
  • mysql

Endpoints

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

Bonus

B06 - Responsive Layout