git clone https://github.com/ntu-vote/ntu-vote-production
cd ntu-vote-production
git submodule init
git submodule update
- nodejs ^16.13.0
- npm ^8.0.0
- postgresql ^14
- Go into frontend directory
- Configure
frontend/.env
to edit the PORT and REACT_APP_PUBLIC_URL parameters according to your environment (set the latter to http://localhost:3000 if you are running locally) - Install node_modules with
npm install
- Start frontend server with
npm start
- Go into backend directory
- Copy file
backend/ormconfig.json.js-example
tobackend/ormconfig.json
and configure it to connect to an existing clean database which the user has access to. - Schema
ntu_vote
should exist in the database specified inbackend/ormconfig.json
\c *db-name*
CREATE SCHEMA IF NOT EXISTS ntu_vote
- Run ORM migrations with
npm run typeorm-run
- Transpile typescript to javascript with
npm run build
- Start backend server with
npm run start