Website for the Carnegie Mellon Informatics and Mathematics Competition.
The project runs a node server that uses MongoDB. The frontend is based on React and Redux. The styling is done with Materialize CSS.
- Start the MongoDB server with
mongod - Populate the
.envfile with the fieldsDB_URLfor your mongo server,JWT_SECRETfor your json web token private key,PORTfor your the port on which you run your node server, andREGISTRATION(true/false) to specify whether registration is open or not - Install dependencies with
npm install - Build the react files with
npm run watch(npm run buildfor production) - Start the server with
npm run dev(npm startfor production)
- Registration is turned on/off by setting the environment variable
REGISTRATIONto the string (true/false) - Once registration is turned off, the database can be reset (delete all students and teams from the database) by accessing
www.cmimc.org/admin, if you have admin status