Thanks to visit codestin.com
Credit goes to github.com

Skip to content

mikezxcv/nest-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

Installation

$ npm install

Once the dependencies are installed, you can now configure your project by creating a new .env file containing the environment variables used for development.

cp .env.example .env

For a standard development configuration, you can leave the default values for HOST, BASE_PATH and PORT under the API REST section.

Running the app

# 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

Using Eslint

# Lint the project files using TSLint
npm run lint

Colaboration

This project follows the GitFlow branching model. Ensure your contributions adhere to this standard.

If you wish to contribute to this project, follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/feature-name).
  3. Make your changes and commit them (git commit -am 'Add new feature').
  4. Push your changes to your fork (git push origin feature/feature-name).
  5. Check to run the comand npm run lint to improve code quality before add your new feature.
  6. Create a new pull request to develop branch.

Project Structure

The project estructure follows the next convention for every modules under modules folder and global folders to enable common global items

src
   |-- common # Common folder contains interfaces, common constants for dependencies inyections used on the whole application
   |   |-- interfaces
   |-- config # Contains configuration to relational and no-relational databases
   |   |-- database.config.ts
   |   |-- mongo.config.ts
   |-- modules
   |   |-- name_module
   |   |   |-- name_module.controller.ts
   |   |   |-- name_module.module.ts
   |   |   |-- dto # Contains Data Transfer Objects used in all the module
   |   |   |   |-- example.dto.ts
   |   |   |-- entities # Contains Entities defined with classes
   |   |   |   |-- example.entity.ts
   |   |   |-- services #Define here the services used for every module including services from external modules
   |   |   |   |-- example.service.ts
   |   |   |   |-- from_other_module.service.ts
tsconfig.build.json
tsconfig.json

Stay in touch

  • Author - Miguel Martinez

License

Nest is MIT licensed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published