See recitation handout on the course website
The starter code is a basic express server with an endpoint that computes fibonacci(n)
The steps below aren't strictly necessary to complete the recitation.
- Make sure you have TypeScript and npm installed
- Run
npm installto install dependencies - Run
npm startto start the server - Go to a browser and visit
localhost:3000/fib/nto see the result for fibonacci(n)
We've setup a GitHub action to run eslint and tests for the fibonacci endpoint.
- You can run the linter locally by running
npm run lint - You can run the tests defined in
tests/fib.test.tsby runningnpm run test