- node.js
- mongo DB
auth
- μμ λ‘κ·ΈμΈ, νμκ°μ , λ‘κ·Έμμ
board
- κ²μν κΈ μμ±, μ΄λ―Έμ§ μ λ‘λ, μμ , μμ
- μ 체쑰ν, μΈλΆμ‘°ν, μΉ΄ν κ³ λ¦¬ λ³ μ‘°ν
- κ²μκΈ κ²μ, μΉ΄ν κ³ λ¦¬ λ³ νν°λ§
comment
- λκΈ μμ±, μμ , λλκΈ μμ±, μμ
user
- μ¬μ©μ μ 보 μ‘°ν
- λ΄κ° μ΄ κΈ, λ΄κ° λκΈ λ¨ κΈ μ‘°ν
npm i
npm start
.env νμΌ λ³λ μ λ ₯ νμ
The directory structure of your new project looks like this:
src
βββ config
βΒ Β βββ config.ts
βΒ Β βββ passport.ts
βΒ Β βββ s3.ts
βββ controllers
βΒ Β βββ auth.ts
βΒ Β βββ board.ts
βΒ Β βββ comment.ts
βΒ Β βββ user.ts
βββ index.ts
βββ interfaces
βΒ Β βββ board.ts
βΒ Β βββ comment.ts
βΒ Β βββ counter.ts
βΒ Β βββ user.ts
βββ models
βΒ Β βββ board.ts
βΒ Β βββ comment.ts
βΒ Β βββ counter.ts
βΒ Β βββ user.ts
βββ routes
βΒ Β βββ auth.ts
βΒ Β βββ board.ts
βΒ Β βββ comment.ts
βΒ Β βββ user.ts
βββ util.js
"dependencies": {
"@types/multer": "^1.4.7",
"@types/multer-s3": "^2.7.11",
"aws-sdk": "^2.1089.0",
"connect-mongo": "^4.6.0",
"cookie-parser": "^1.4.6",
"cors": "^2.8.5",
"dotenv": "^16.0.0",
"express": "^4.17.3",
"express-session": "^1.17.2",
"google-auth-library": "^7.14.0",
"mongoose": "^6.2.4",
"multer": "^1.4.4",
"multer-s3": "^2.10.0",
"passport": "^0.5.2",
"passport-google-oauth2": "^0.2.0",
"ts-node": "^10.7.0",
"@types/cors": "^2.8.12",
"@types/express": "^4.17.13",
"@types/express-session": "^1.17.4",
"@types/node": "^17.0.21",
"@types/passport": "^1.0.7",
"@types/passport-google-oauth2": "^0.1.4",
"nodemon": "^2.0.15",
"typescript": "^4.6.2"
}