Skip to content

989g/nest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 

Repository files navigation

branches 🦋

rest-dev

nestJS structure & google gmail authentication

rest

@nestjs/mongoose mongoose

apollo

@nestjs/graphql @nestjs/apollo graphql apollo-server-express

@nestjs/mongoose mongoose

nest-api

Node.js framework NestJS project structure

Configuration

  1. Create a .env file
  2. Edit env config
    • Edit the file in the config folder.
    • default, development, production, test

Installation

# 1. node_modules
pnpm ci
# 1-1. npm < v7 or Node.js <= v14
pnpm i
# 2. When synchronize database from existing entities
pnpm run entity:sync
# 2-1. When import entities from an existing database
pnpm run entity:load

If you use multiple databases in entity:load, modify them.

Development

npm run dev
# https://docs.nestjs.com/recipes/repl
npm run start:repl

Run http://localhost:5000

Test

pnpm test # exclude e2e
pnpm run test:e2e

Production

pnpm run lint
pnpm run build
# define environment variable yourself.
# NODE_ENV=production PORT=8000 NO_COLOR=true node dist/app
node dist/app
# OR
pnpm start

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published