Skip to content

TMcMeans/test-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test Server

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.

⚙️ Initial Setup

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

Features

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"}.

Future Iterations

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.

🏗 Tech Stack List

  • Node.js
  • Express
  • Mocha
  • Chai
  • Chai HTTP

📥 How To Contribute

  1. Fork this repo
  2. Create your feature branch (git checkout -b feature/thingamajig)
  3. Commit your changes (git commit -m 'Added a cool doodad!')
  4. Push to the branch (git push origin feature/thingamajig)
  5. Create a new Pull Request

🚀 Core Contributors

Tanjie McMeans

About

A small server built with node.js and express

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published