Skip to content

bsmayer/users-api

Repository files navigation

Users API

A simple Rest API containing:

  • Node JS + Express
  • Typescript
  • Dependency Injection
  • MongoDB integration (with mongoose)
  • Module organization
  • Docker + PM2
  • Docker Compose for local running
  • Unit Tests using Jest + TypeMoq

How to run

Just execute the file "run_dev.sh".
Note: you should have Docker installed and running.

How to test

Just import one of its test schemas to your favorite rest app.
Currently, there are Postman and Insomnia ❤️ support.

Running unit tests

Please, note that not all the unit tests were implemented, since it's a demonstration of how to deal with unit tests + typescript.
To run unit tests, execute the following command:

npm test

If you want to run the test coverage, this is how we can do it:

npm run testcoverage

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published