This is the ExpressJS
version of this project. Click here to check out the Java
version of this project.
SAMS - a Student Attendance Management System built with ExpressJS, Bootstrap, JQuery and MySQL.
To start with, you must install Docker and docker-compose on your computer.
First, create a docker-compose.yml
file with the following content:
version: "3"
services:
web:
build: .
ports:
- "3000:3000"
restart: unless-stopped
db:
image: mysql/mysql-server:8.0
restart: unless-stopped
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: sams
MYSQL_USER: sams
MYSQL_PASSWORD: sams
volumes:
- dbdata:/var/lib/mysql
- ./my.conf:/etc/mysql/my.cnf
- ./db/:/docker-entrypoint-initdb.d
volumes:
dbdata:
Then, run the command to start the server:
docker-compose up -d
Wait a minutes and open http://localhost:3000 with your browser to see the result.
- username:
liu@test.com
- password:
testes
- username:
ftk@test.com
- password:
testes
This is a Individual Assignment Project built by Jacky Fan in 2021 for the Course AST20201 Web Programming.
The following tech is used in this project.