Practice the basics of Express by configuring an Express server to provide HTTP endpoints to sit in front of your JavaScript Basics katas.
We have provided an end-to-end test suite written using Mocha and Chai, a popular alternative to Jest.
We have also provided the most basic Express configuration possible in src/app.js
You challenge is to configure this Express server and integrate your JavaScript Basics code to make the tests pass.
- Fork this repository
git clone git@github.com:<your-github-username>/kata-api.git
npm install
Copy the src
code from your JavaScript Basics repository into a lib
directory in this repositories src
directory. You should end up with the following file structure in this project:
src
├── app.js
└── lib
├── arrays.js
├── booleans.js
├── numbers.js
├── objects.js
└── strings.js
npm start
uses Nodemon to run the development server with file-watch enabled.
npm test
uses Mocha to run e2e tests defined intests
directory