A service to create and join teams to compete in a hackathon or other competition
TODO
- Add more info to teams page
- Display an error message if you try and join a team that doens't exist
- Have follow through links so you can click a link to join a team and register at the same time
- Allow profile editing
- Allow team leaders to kick team members
Clone the project
git clone https://github.com/ecss-soton/team-registration.gitGo to the project directory
cd team-registrationInstall dependencies
npm installHave a PostgreSQL server running
Configure the environment variables. See [Environment Variables]
Sync the database with the local schema
npm run prisma:dbpushStart the server
npm run startOr start with auto refresh in development mode
npm run devTo run this project, you will need to copy the .env.development to .env and fill in the secrets
The required environment variables are:
AZURE_AD_CLIENT_SECRETCreate a new app registration in Azure AD and use the client secretAZURE_AD_CLIENT_IDCreate a new app registration in Azure AD and use the client idSOTON_VERIFY_API_AUTHThe API key for the sotonverify API either get a live key (contact ECSS web officer) or run your own instance of sotonverifyDATABASE_URLConnection URI for the PostgreSQL database
Find our docker image on Docker hub
To run tests, run the following command
npm run testAll requests must supply a Authorization HTTP header in the format: Authorization: TOKEN
Authorization: b583ef41-9c75-41a4-b4ec-19feb0befbd6
Currently, there are no rate limits in place