local_json_api

Simple node.js API (express.js) for recieving, adding and searching for movies. API didn't use any database, data is stored in .json file and API use it for reading and writing.

Search endpoint allow to find movies according to specified duration or list of genres (both are optional). If any of params aren't specified, endpoint return one random movie.


In project i use:

Backend

Node.js Express

Tests

Jest


Build Setup

Clone repository

# install all dependencies
npm i

# run development server with autoreload (nodemon)
npm run dev

# or

# run test (jest)
npm run test