Skip to content

Smart-Health-Organization/smart-health-api

Repository files navigation

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective Support us

Description

Nest framework TypeScript starter repository.

First steps

Clone the repository with git clone

Important observation

To run the app, you should change the branch to any of these branches: "prod" or "dev". In some of these branches("prod" or "dev"), you can start the application with the steps bellow

Installation

My Skills - DOCKER

Run docker containers

$ docker-compose up -d

Run docker containers

You can access smart-health-api on localhost:3000.
To run it locally, you need to turn off smart-health-api container

My Skills - LOCAL

copy .env

$ cp .env-example .env

verify postgreSQL instance on docker or local

Run npm install

$ npm install

Running the app

Observation: to run the app in localhost, smart-health-api should be off, because it will use the same port

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

swagger localhost

https://smart-health-prod-xcaubn3uta-uc.a.run.app/api

PROD environment

https://smart-health-prod-xcaubn3uta-uc.a.run.app

swagger PROD environment

https://smart-health-prod-xcaubn3uta-uc.a.run.app/api

DEV environment

https://smart-health-dev-xcaubn3uta-uc.a.run.app

swagger DEV environment

https://smart-health-dev-xcaubn3uta-uc.a.run.app/api

Support

Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.

Stay in touch

License

Nest is MIT licensed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages