Skip to content

RYOTA-F/tmp-next-nest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TMP Next.js × Next.js × MySQL

Setup

  1. Env Setting

    a. Copy .env

    $ cp .env_example .env
    

    b. Edit .env

  2. Build

$ docker-compose build
  1. Nest install
$ docker-compose run --rm api yarn install
  1. Next install
$ docker-compose run --rm front yarn install
  1. TypeORM Migration
$ docker-compose run --rm api yarn migration:r
  1. TypeORM Seed Run
$ docker-compose run --rm api yarn seed:r

Run

Docker Run

$ docker-compose up -d

Access

Front

localhost:8080/

Storybook

localhost:6006/

API

localhost:3000/api/

TypeORM

Migration Generate

$ docker-compose run --rm api yarn migration:g {Model}Migration

Migration Run

$ docker-compose run --rm api yarn migration:r

Seed Run

$ docker-compose run --rm api yarn seed:r

NestJS

Create Module

$ docker-compose run --rm api yarn nest g module {module_name}

Create Controller

$ docker-compose run --rm api yarn nest g controller {module_name}

Create Service

$ docker-compose run --rm api yarn nest g service {module_name}

Lint

Nest: ESLint

$ docker-compose run --rm api yarn lint

Next: ESLint

$ docker-compose run --rm front yarn lint

Next: ESLint:Fix

$ docker-compose run --rm front yarn lint:fix

Test

Nest: Jest

$ docker-compose run --rm api yarn test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages