Skip to content

🚀 This template should help get you started developing with NestJS, TypeORM + MySQL.

Notifications You must be signed in to change notification settings

NicolasJott/nest-mysql-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Nest framework TypeScript Template.

Installation

$ npm install

Development Database

Database connection is setup to use environment variables in a .env file. The Database connection is setup to use MySQL with typeorm packages. A .env.example is provided that uses database and initial data variables for the following setup: Development database creation using template with user template at localhost:3306:

Note: Please make sure you have installed mysql and have configured your environment to use it.

CREATE DATABASE template;
CREATE USER 'CREATE DATABASE template'@'localhost' IDENTIFIED BY 'CREATE DATABASE template';
GRANT ALL PRIVILEGES ON *.* TO 'template'@'localhost' WITH GRANT OPTION;

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

Docs

  • Nest - Documentation for Nest framework.
  • MySQL - Documentation for MySQL Community Server.

About

🚀 This template should help get you started developing with NestJS, TypeORM + MySQL.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published