Skip to content

GiveMeSomething/mini-nestjs

Repository files navigation

Nest Logo

Description

A template for NestJS project with

  • NestJS for serving HTTP servers
  • Knex for database-related operations
  • Commander for CLI support

Project setup

$ npm install

Compile and run the project

# Discover options by yourself
$ npm start -- -- --help

Run tests

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

With Docker

# coming soon
docker compose -p minest -f docker-compose.dev.yaml up -d

Using another database

  • Update docker-compose.dev.yaml + .env to your new database config
  • Remove mysql2 driver from package.json
  • Install your database driver. More info at Knex Guide
  • Update the client to your database driver in ./src/config/database.ts - const createKnexClient()

License

Nest is MIT licensed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published