Giter Club home page Giter Club logo

nestjs-template's Introduction

Nest Logo

Description

Nest framework TypeScript TypeORM Monolithic starter repository.

Getting started

# 1. Clone the repository.
git clone https://github.com/Rapid-learnings/nestjs-template

# 2. Enter your newly-cloned folder.
cd nestjs-template

# 3. Install dependencies. (Make sure yarn is installed: https://yarnpkg.com/lang/en/docs/install)
yarn

# 4. Run development server and open http://localhost:3000
yarn start:dev

Starting Docker container

# Run below command inside nestjs-template folder in terminal
docker-compose up

Test

# unit tests
$ yarn test

# e2e tests
$ yarn test:e2e

# test coverage
$ yarn test:cov

Swagger documentation

open http://localhost:3000/docs

Envioroment variables example


PORT=3000
JWT_SECRET_KEY=rxPhglGJWPlOW596
JWT_EXPIRATION_TIME=3600

Postgres envioroment variables


DB_HOST=localhost
DB_PORT=5432
DB_USERNAME=postgres
DB_PASSWORD=postgres
DB_DATABASE=demo

Sentry


SENTRY_DSN='sentry-dsn'

Database Migrations

Generate migration from database yarn migration:generate initialMigration

Run migrations yarn migration:run

Features

Quick scaffolding
Create modules, services, controller - right from the CLI!
Instant feedback
Enjoy the best DX (Developer eXperience) and code your app at the speed of thought! Your saved changes are reflected instantaneously.
JWT Authentication
Installed and configured JWT authentication.
Next generation Typescript
Always up to date typescript version.
Industry-standard routing
It's natural to want to add pages (e.g. /about`) to your application, and routing makes this possible.
Environment Configuration
development, staging and production environment configurations
Swagger Api Documentation
Already integrated API documentation. To see all available endpoints visit http://localhost:3000/documentation
Linter
tslint + eslint + prettier = ❤️

License

Nest is MIT licensed.

nestjs-template's People

Contributors

rakeshdr1 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.