CodamHero v2 gives staff and students an overview of everything Codam.
Only staff members or C.A.T.s have access to (parts of) piscine overviews by design.
- Node.js (
brew install nodeif you are on Mac, otherwise you gotta figure it out) - A 42 API key (get one from your intra: Settings > Applications > Register a new app)
- URI key must be localhost:4000 or 5000 according to your build
- Make sure the scope is accurate
Install dependencies:
docker compose up -d # for the PostgreSQL database
npm installSetup your keys:
cp .env.example .env
nano .env- Add your INTRA_UID and INTRA_SECRET
- Add a SESSION_SECRET and DIRECT_AUTH_SECRET
Run the following:
npm run build
npx prisma migrate deploy
npm run startTo migrate the database, run:
npx prisma migrate dev --name "<migration-name>"Don't push your API key.