monolith.mp4
You can read all technical and API documentation from here Documentation
This app includes the frontend and backend for the User/Customer Page.
- Register Page
- Login Page
- Catalog Page and Detail Barang Page
- Buy Barang Page (Cart Page)
- Order History Page
- Register
- Login
- Buy Barang (Cart)
- Order History
- Laravel
- PHP
- Vite for preprocessing TailwindCSS
Before you run this project locally, you can copy .env.example into .env and then set the environment. After that, run it with docker.
docker-compose build
docker-compose up -d
It will automatically migrate and seed the database.
After that, if you want to connect this container to the single service container, you have to make a network between the 2 containers on the docker by applying this command on your terminal.
docker network create my_network
docker network connect my_network app_monolith
docker network connect my_network go-app
I use go-app for the single service container and app_monolith for the monolith app in the Dockerfile.
API_BASE_URL=http://localhost:8000 => API_BASE_URL=http://go-app:8000
Using laravel in the docker container is not the best option for running this app, because it's slow to build and then the average response would take about 3-5 seconds. Using the old way to run this app would be preferable.
composer install
setup the env
php artisan migrate
php artisan db:seed
npm install
Open 2 terminal: for laravel application and for vite preprocessor (for the TailwindCSS)
npm run dev
php artisan serve --port=8080
Initial account
username: admin
password: admin
2023 © bangkitdc. All Rights Reserved.
Nama : Muhammad Bangkit Dwi Cahyono
NIM : 13521055