Test server is a fully tested basic app built with Node.js and Express that makes POST requests to the route "/test" which accepts one argument {"string_to_cut": "string goes here"} and returns a JSON object with the key “return_string” with a value containing every third letter from the original string.
OS X & Linux:
After cloning this repo type the following commands into your terminal to install dependencies and start your local server:
npm install
npm start
To view tests, quit your server (cmd + c) and type the following commands into your terminal:
npm test
The server accepts POST requests to the route "/test" which accepts one argument “string_to_cut” and returns a JSON object with the key “return_string” and a string containing every third letter from the original string. For example, if you POST {"string_to_cut": "happybirthdaymom"}, it will return {"return_string": "pbtao"}.
This app was created as a mini-project to demonstrate my ability to write well-crafted, well-tested, readable, maintainable code on a small scale.
- Node.js
- Express
- Mocha
- Chai
- Chai HTTP
- Fork this repo
- Create your feature branch (
git checkout -b feature/thingamajig
) - Commit your changes (
git commit -m 'Added a cool doodad!'
) - Push to the branch (
git push origin feature/thingamajig
) - Create a new Pull Request
Tanjie McMeans