NestJSλ₯Ό μ¬μ©νμ¬ κ²μν μλΉμ€λ₯Ό κ°λ°ν κ°μΈ νλ‘μ νΈ μ λλ€.
- νλ‘μ νΈ κΈ°κ° : 22-02-17 ~ 22-02-21 (5 Days)
- μ¬μ©λ κΈ°μ : NestJS, PostgreSQL, TypeORM, Multer, bcyrpt, JWT, Docker, aws-EC2
- κΈ°λ₯ μ€λͺ : λ‘κ·ΈμΈ/νμκ°μ , κ²μν CRUD API, λκΈ CRUD API, νμΌμ λ‘λ
https://github.com/markkim340/Board_app.git
npm install
- λ컀 μ¬μ©μ
1. docker pull postgres
2. docker compose up
- .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
npm run start:prod // κ°λ° λͺ¨λλ‘ μ€ν