To Run:
- Copy
sample.env
to.env
- if seeding the development database, setALLOW_SEED
totrue
- Install dependencies with
pnpm i
- (Optional): Make sure mongo is running, and seed the database with
pnum run seed
. It will seed the placeholder challenge for the numbers of days according to the variables in the seed script - which is great for testing. Alternatively, you can seed using the seed script on the main repo, which will seed the actual challenges. - Run the server with
pnpm run develop
- Get challenge info at
localhost:3000/api/daily-challenge/date/:date
- e.g.http://localhost:3000/api/daily-challenge/date/3-20-2025
<- note the date format:M-D-YYYY