Skip to content

seeren/nestjs-starter

Repository files navigation

Description

Nest Starter project with environment config, typeorm and nestjs-i18n integration


Installation

git clone https://github.com/seeren/nestjs-starter.git

Developpement

Docker usage

Dockerfile is adapted for arm arch adapt as needed

# Build then run image
docker-compose up -d

Container is named nestjs-starter to execute commands

# Execute zsh
docker exec -it nestjs-starter zsh

Basic usage

# install dependencies
npm install

# development
npm start

Environment

Docker and modules setup are stored in .env, .production.env and .test.env


ORM

Typeorm use configuration files

# execute orm
npm run typeorm

# create entity
npm run entity:create <path-to-entity>

# create empty migration
npm run migration:create

# generate migration
npm run migration:generate

# execute migration
npm run migration:run

# cancel migration
npm run migration:revert

Translations

Translation fallback language is in configuration files

I18N_FALLBACK=en

License

This repo is MIT licensed.

About

Nestjs starter project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published