Skip to content

NTUEEInfoDep/NTUEECourseWebsite2021-1

 
 

Repository files navigation

NTUEECourse2021

2021 年新版臺大電機系預選網站 (https://course.ntuee.org/)

Usage

Contributors

前端:朱哲廣, email: [email protected]

後端:

Quick Start (Development mode)

After cloning this repo, put students.json into ./server/database/private-data/, and then execute the following commands.

For the format and generation of students.json, see password generation.

$ cp .env.defaults .env                                  # Run one time
$ pnmp database reset                                    # Database reset, run one time
$ pnpm install
$ docker-compose -f docker-compose_dev.yml up -d         # This will watch backend code changes
$ pnpm dev-server           # This will run a develop server
$ pnpm start

Goto http://localhost:3000 to see the website.

Frontend Develop (With Docker)

# start frontend, backend, database
$ docker-compose up -d

To see frontend logs

$ docker logs -f ntueecoursewebsite2021_frontend_1

To reset database

$ docker exec -it ntueecoursewebsite2021_backend_1 npm run database reset

Frontend Develop (Without Docker)

$ npm install
$ npm start
# in another terminal
cd server
docker-compose up -d
cd ..
npm run database reset
npm run dev-server

About

2021 年新版臺大電機系預選網站 (https://course.ntuee.org/)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 74.1%
  • Python 24.4%
  • Other 1.5%