Skip to content

darioegb/typescript-express-template

Repository files navigation

Typescript Express template

pipeline status Quality Gate Status Coverage Maintainability Rating Reliability Rating Security Rating

Description

This repository is a NodeJS Express rest api template with jwt authentication, unit test coverage, and mongodb database. It is written in Typescript. Its documentation is made with postman and the collection is at the root of the project. It also has a quality gate with sonarcloud.

Installation

npm install

Enviroment file

Create .env file with your values and also create .env.test for testing propouse

MONGO_PREFIX=mongodb
MONGO_USER=dbAdmin
MONGO_PASSWORD=secret
MONGO_PATH=@localhost:27017
MONGO_DATABASE=api-nodejs
JWT_SECRET=jwt_secret
PORT=3000
NODE_ENV=dev

Running

npm run dev

Debbuging

If you use visual code as a code editor, you can use Node: Nodemon or Jest All settings for debugging when the server is running or when you want to debug test cases respectively.

Testing

npm run test

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published