/Board_app

Board_app created using NestJS

Primary LanguageTypeScript

πŸ“‹ Board_app

NestJSλ₯Ό μ‚¬μš©ν•˜μ—¬ κ²Œμ‹œνŒ μ„œλΉ„μŠ€λ₯Ό κ°œλ°œν•œ 개인 ν”„λ‘œμ νŠΈ μž…λ‹ˆλ‹€.

μ„€λͺ…

  • ν”„λ‘œμ νŠΈ κΈ°κ°„ : 22-02-17 ~ 22-02-21 (5 Days)
  • μ‚¬μš©λœ 기술 : NestJS, PostgreSQL, TypeORM, Multer, bcyrpt, JWT, Docker, aws-EC2
  • κΈ°λŠ₯ μ„€λͺ… : 둜그인/νšŒμ›κ°€μž…, κ²Œμ‹œνŒ CRUD API, λŒ“κΈ€ CRUD API, νŒŒμΌμ—…λ‘œλ“œ

μ‹€ν–‰

1. git clone

https://github.com/markkim340/Board_app.git

2. νŒ¨ν‚€μ§€ μ„€μΉ˜

npm install
  • 도컀 μ‚¬μš©μ‹œ
1. docker pull postgres
2. docker compose up

3. ν™˜κ²½λ³€μˆ˜ μ„€μ •

  • .env
**NODE_ENV=production
POSTGRES_HOST={DB host} ex)postgres
POSTGRES_USER={DB USER} ex)postgres
POSTGRES_PASSWORD={DB PASSWORD} ex)postgres
POSTGRES_DB={λ°μ΄ν„°λ² μ΄μŠ€λͺ…} ex)boardapp
  • src/config/production.yaml
server:
  port:  ex)3000 

db:
  synchronize:  ex)false

jwt:
  secret:   ex)'secretKey'
  expiresIn:   ex)10800

4. μ„œλ²„ μ‹€ν–‰

npm run start:prod         // 개발 λͺ¨λ“œλ‘œ μ‹€ν–‰