A progressive Node.js framework for building efficient and scalable server-side applications.
Nest framework TypeScript starter repository.
$ yarn install# 1. create database with psql
CREATE USER db_username WITH PASSWORD db_password;
CREATE DATABASE db_name OWNER db_username;
ALTER USER moe CREATEDB;
# 2. migrate prisma to create the DB
npx prisma generate
npx prisma migrate dev
# 3. start the nest server
yarn start
# watch mode
$ yarn run start:dev
# production mode
$ yarn run start:prodmake sure to have a .env file in your root directory that has this variable:
DATABASE_URL="postgresql://db_username:db_password@localhost:postgre_port/db_name?schema=public"# unit tests
$ yarn run test
# e2e tests
$ yarn run test:e2e
# test coverage
$ yarn run test:covnpx prisma format
npx prisma generate
npx prisma migrate dev --name discriptive-name-for-the-migration
yarn start:devNest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.
- Author - Kamil Myśliwiec
- Website - https://nestjs.com
- Twitter - @nestframework
Nest is MIT licensed.