This repo is for CS430 at Colby College, in which our team designed a system to to manege an organize Colby College Computer Science department's TA Hours.
- Make an account on google cloud services and get an Oauth Consent URI: You can find a tutorial on how to do this here.
- Fill out the
.txtfiles in thesecretsfolder. To do this, make copies of all the.examplefiles in the folder and copy them to just be.txtfiles. After this, fill out all the fields as requested in the files. - Next, in
frontend/src/types/socketEvents.ts, change the IP address in thePROD_SOCKET_URIto whichever IP you want to run it on (maybe change this in the future so it is not hard coded). - In the
frontend/vite.config.tsfile, underpreview:{allowedHosts}, add to the list to DNS you want to run the project on. - Next (assuming you have docker), in the root, run:
make all- Afterwards, to run the project, run
make run- To shut it down, run
make destroy- And to get rid of the volumes (due to how it is building currently, you have to do this every time), run:
make pruneThe default port is 3001.
.
├── backend
├── count_line.sh
├── database
│ ├── mongo-dump
│ │ └── TAHours
│ │ ├── posts.bson
│ │ ├── posts.metadata.json
│ │ ├── users.bson
│ │ └── users.metadata.json
│ └── testdata
│ └── TAHours
│ ├── cs_classes.bson
│ ├── cs_classes.metadata.json
│ ├── posts.bson
│ ├── posts.metadata.json
│ ├── ta_queues.bson
│ ├── ta_queues.metadata.json
│ ├── tickets.bson
│ ├── tickets.metadata.json
│ ├── users.bson
│ └── users.metadata.json
├── docker-compose.yml
├── frontend
├── gorilla
│ └── gorilla.jpg
├── Makefile
├── mongorestore.sh
├── README.md
├── secrets
│ ├── backend_env.txt.example
│ ├── frontend_env.txt.example
│ ├── mongo_pass.txt.example
│ └── mongo_user.txt.example
└── Useful_Queries.md