Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/w-ptra/sea_salon
Tugas Umum Seleksi Comfest.id Academy ~ Software Engineering. SeaSalon is web based application for beauty salon build using Bootstrap, Javascript, Node.js, Express.js, MariaDB/MYSQL.
https://github.com/w-ptra/sea_salon
boostrap expressjs javascript mariadb mysql
Last synced: 2 days ago
JSON representation
Tugas Umum Seleksi Comfest.id Academy ~ Software Engineering. SeaSalon is web based application for beauty salon build using Bootstrap, Javascript, Node.js, Express.js, MariaDB/MYSQL.
- Host: GitHub
- URL: https://github.com/w-ptra/sea_salon
- Owner: W-ptra
- Created: 2024-06-28T07:42:37.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-08-24T12:28:06.000Z (5 months ago)
- Last Synced: 2024-11-25T04:08:59.802Z (2 months ago)
- Topics: boostrap, expressjs, javascript, mariadb, mysql
- Language: EJS
- Homepage:
- Size: 363 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SEA_Salon
Tugas Umum Seleksi Comfest.id Academy ~ Software EngineeringSeaSalon is web based application for beauty salon build using Bootstrap, Javascript, Node.js, Express.js, MariaDB/MYSQL.
# Usage
## prerequisite
1. nodejs v20.2.0
2. mysql/mariadb database
3. run database migration from file `schema.sql` on mysql/mariadb
Example:
![img](https://drive.google.com/uc?export=view&id=1KRT2reL-dpcb8cmOALLYndTt__Fim6Ir)
## Installation
1. clone this repo
```
git clone https://github.com/W-ptra/SEA_Salon.git
```
2. download dependencies
```
npm install
```
3. run the application
```
node .
```
4. open browser and paste following address on url
```
http://localhost:8000/home
```
5. Here the credential for login
```
# login as customer
[email protected]# password
bibi
```
```
# login as admin
[email protected]# password
Admin123
```
# Docker Usage
I personally recommended this, as I awalys use it almost on all my project. It eliminate the term `It work on my machine`.
1. Create Network and databases container
```
docker network create seasalon_networkdocker run -d --name mariadb --network seasalon_network -e MYSQL_ROOT_PASSWORD=root wisnup001binus/mariadb_seasalon:1.0
docker network inspect seasalon_network
```
2. Copy the `ipv4 address of mariadb container` to `-e HOST={ipv4 address}` when run `wisnup001binus/seasalon:1.0` container
![img](https://drive.google.com/uc?export=view&id=1Z4XXvzQ6Hw1OBHGPAfM80mhUWuDH33ha)
Example script:
```
docker run -d -p 8000:8000 --name seasalon --network seasalon_network -e PORT=8000 -e SESSION_KEY="secret" -e DB_HOST="172.19.0.2" -e DB_USER="root" -e DB_PASSWORD="root" -e DB_DATABASE="seasalon" wisnup001binus/seasalon:1.0```
3. open browser and paste following address on url
```
http://localhost:8000/home
```
4. To clean up run this script
```
docker stop seasalon mariadb
docker remove seasalon mariadb
docker network remove seasalon_network
```