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
.env
file with the fieldsDB_URL
for your mongo server,JWT_SECRET
for your json web token private key,PORT
for 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 build
for production) - Start the server with
npm run dev
(npm start
for production)
- Registration is turned on/off by setting the environment variable
REGISTRATION
to 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