Skip to content

Latest commit

 

History

History
49 lines (31 loc) · 1.01 KB

README.md

File metadata and controls

49 lines (31 loc) · 1.01 KB

PF-MEDICINES-API-NODE

Personal Finance: Medicines API Node.

References

Github

https://github.com/mrturo/pf-medicines-api-node.git

Starting

git clone git@github.com:mrturo/pf-medicines-api-node.git

Pre-requirements

It can be done in two ways:

  • Through Docker, for this, you must install Docker Desktop following these steps.
  • Running directly on your computer, you must install:

Installation

  • With Docker:
    • Up image: npm run docker:start
    • Down image: npm run docker:stop
    • Restart image: npm run docker:restart
  • Running on your computer:
    • Build executables: npm run install-build
    • Run in production: npm start
    • Run while developing: npm run start:dev

API Documentation

http://localhost:3000/api-docs/

Testing execution

Unit test

npm run test-coverage:unit

Integration test

  • With Docker:

    npm run docker-test

  • Running on your computer:

    npm run test-coverage:complete