ManuCiao / Database_Server

Database_Server_tech_test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Database Server Tech Test

User Stories

As a programmer
I want to write a program
where the server is accessible on http://localhost:4000/.

As a programmer
the program I wrote should receive a request on http://localhost:4000/set?somekey=somevalue
and store the passed key and value in memory.

As a programmer
the program I wrote should receive a request on http://localhost:4000/get?key=somekey
and return the value stored at somekey.

As a programmer
I want to write a program
where the data will be saved to a file.

Installation instructions

Install NPM and Node.js.

Next, clone this repo and install all the dependencies:

$ git clone https://github.com/ManuCiao/Database_Server db_server
$ cd db_server
$ npm install

To build the server I used Express.js.

To run the project:

$ npm start

To run the test use:

$ npm test

To create the tests I used Mocha Chai with Chai-Http.

About

Database_Server_tech_test


Languages

Language:JavaScript 100.0%