Skip to content

maqduni/mdly-test-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mdly-test-app

ExpressJS HTTP server that features two endpoints,

  • POST /api/facts/find
  • POST /api/facts/insert

NOTE - If you want to just run the server locally: do step 1, then skip to the "Run the application in Docker container" step below.

Installation:

NOTE - make sure to use Node v14. Node version is also specified in .nvmrc and package.json.

  1. Clone the repo
> git clone ...
  1. Install NPM dependencies
server> npm i
  1. Create .env file
server> cp .env.example .env

Running:

Run the application

server> npm run start

Develop in watch mode

server> npm run start:dev

Debug in watch mode

server> npm run start:debug

Run the application in Docker container

> docker run -p 3000:3000 -it $(docker build -q .)

Testing:

Execute unit tests

server> npm run test

Execute HTTP tests

HTTP tests are located in server/tests/http and can be executed in an IDE.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published