- clone project
- cd project
- npm install
- nodemon
npm install
cd public
bower install
cd ..
npx sequelize-cli db:migrate
npm start
- open new terminal tab >
node seed.js
(tạo account cho user) npx sequelize-cli db:seed:all
(tạo tài khoản admin)sequelize seed:generate --name ${ten_seeder}
(tạo tài khoản)
-
Đăng nhập hệ thống Cho phép người dùng đăng nhập vào Trang quản lý hồ sơ sức khỏe học sinh.
Role:- QTHT (
code: 10
) - TH (
code: 11
) - GV (
code: 12
)
Luồng:
- Chọn chức năng đăng nhập hệ thống.
- người dùng điền thông tin đăng nhập, submit để đăng nhập vào hệ thống
- Đăng nhập thành công vào hệ thống
- QTHT (
npx sequelize-cli migration:create --name modifier-${tên_bảng_cần_sửa}
- vào file mới tạo trong migrations -> sửa
http://localhost:8080/reset?email=nhatlong@hocvienact.edu.vn