Skip to content

Boilerplate for nodejs backend application based on nestjs framework

Notifications You must be signed in to change notification settings

cojack/project-backend

Repository files navigation

Description

Project backend, because I was bored to start every project from kind of scratch, and copy modules from other projects Then I came with idea to bring them together and publish it here as open source projects.

Projects is based on framework Nest

Installation

$ npm install

Configure

Review .env.schema contains all of available environment variables, but not all are required, to check with on are required, check it with file: src/app/config/env.schema.ts it's filled with Joi validation, where you will see a .default call with default value. I doesn't have for now better solution to figure out which one of env is required.

Running the app

# development
$ npm run start

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

License

Nest is MIT licensed.

Working on

  • fixtures

    • fake users
    • roles
    • access control list
    • fake blog data
  • config

    • env validation
    • TypeORM config service
  • core

    • kind of sharable resources
  • auth (jwt)

    • login
    • register
    • verify
    • password reset
    • password remind
    • notifications
  • admin (AdminLTE)

    • login
    • management
  • security

    • voters
    • guards
  • user

    • business logic
  • blog - crud example

    • posts
    • comments

Next stages: to be continued

Notes

I will try to wrote all of the components as independent modules with CQRS

Help

PR's are welcome

About

Boilerplate for nodejs backend application based on nestjs framework

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages