🤟The backend program for Hackathon 2020 registration website.
- PM2
- Mongodb
- Express.js
- TypeScript
- Run these commands to fetch the copy of the project and install the dependent packages using npm.
git clone https://github.com/SYSUMSC/hackreg-t1-backend.git cd hackreg-t1-backend npm install - Open
env/development.env, and refer to the comments to set up mongodb and RSA SHA256 key pair. - Install pm2 globally:
npm install pm2 -g. - Run these commands to fire up the development build! Tips: With the help of nodemon, a recompile will automatically be executed whenever there are file changes in
src/andenv/.npm run dev
- Run
npm run build. - Copy the
dist/to wherever you want. - Prepare a new RSA SHA256 key pair and edit
env/production.envaccordingly. - Run
npm install -g pm2to install pm2 globally. - Run
pm2 start app.config.jsto fire up the server!
- Prepare a good mongodb server and a reverse proxy.
- Edit
env/production.envaccording to your actual environment. - Follow the guides above.
Check out the wiki here.
This project is licensed under the MIT license, see the LICENSE file for details