node-mongo-demo

node.js and mongodb demo

git clone https://9o.is/git/node-mongo-demo.git

commit aa0761227301108a9a275db58cf84f9420d89c4c
parent 83c27d56cd041a9543dd30bb1e1c6e4cac64503e
Author: Jul <jul@9o.is>
Date:   Tue, 28 Jan 2025 21:20:30 -0500

fix

Diffstat:
Mbackend/src/api/lucky7.int.test.js | 2+-
Mreadme.md | 8+++++---
2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/backend/src/api/lucky7.int.test.js b/backend/src/api/lucky7.int.test.js @@ -103,7 +103,7 @@ describe('Lucky7', () => { }); - it('GET /leaderboard/streaks', await () => { + it('GET /leaderboard/streaks', async () => { const res = await request(app).get('/leaderboard/streaks'); expect(res.status).toBe(200); diff --git a/readme.md b/readme.md @@ -41,14 +41,16 @@ Now in the backend folder. Run the start command in a separate terminal. npm run start ``` -The backend is now up and running. Feel free to use the populate script to generate -users and bets to inspect the leaderboard endpoint. +The backend is now up and running. There's a working frontend demo, +so feel free to test the API from there. There's also a +populate script to generate users and bets to inspect the +leaderboard endpoint. ```bash MONGODB_URL="<INPUT URL>" node scripts/populate_database.js ``` -To run unit and integrations tests: +To run unit and integration tests: ```bash npm run test