-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[3주차/지나] 워크북 제출합니다.
- Loading branch information
Showing
7 changed files
with
465 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
node_modules | ||
package-lock.json | ||
|
||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
lerna-debug.log* | ||
.pnpm-debug.log* | ||
|
||
# Diagnostic reports (https://nodejs.org/api/report.html) | ||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
*.lcov | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
|
||
# Snowpack dependency directory (https://snowpack.dev/) | ||
web_modules/ | ||
|
||
# TypeScript cache | ||
*.tsbuildinfo | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional stylelint cache | ||
.stylelintcache | ||
|
||
# Microbundle cache | ||
.rpt2_cache/ | ||
.rts2_cache_cjs/ | ||
.rts2_cache_es/ | ||
.rts2_cache_umd/ | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variable files | ||
.env | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
.env.local | ||
|
||
# parcel-bundler cache (https://parceljs.org/) | ||
.cache | ||
.parcel-cache | ||
|
||
# Next.js build output | ||
.next | ||
out | ||
|
||
# Nuxt.js build / generate output | ||
.nuxt | ||
dist | ||
|
||
# Gatsby files | ||
.cache/ | ||
# Comment in the public line in if your project uses Gatsby and not Next.js | ||
# https://nextjs.org/blog/next-9-1#public-directory-support | ||
# public | ||
|
||
# vuepress build output | ||
.vuepress/dist | ||
|
||
# vuepress v2.x temp and cache directory | ||
.temp | ||
.cache | ||
|
||
# Docusaurus cache and generated files | ||
.docusaurus | ||
|
||
# Serverless directories | ||
.serverless/ | ||
|
||
# FuseBox cache | ||
.fusebox/ | ||
|
||
# DynamoDB Local files | ||
.dynamodb/ | ||
|
||
# TernJS port file | ||
.tern-port | ||
|
||
# Stores VSCode versions used for testing VSCode extensions | ||
.vscode-test | ||
|
||
# yarn v2 | ||
.yarn/cache | ||
.yarn/unplugged | ||
.yarn/build-state.yml | ||
.yarn/install-state.gz | ||
.pnp.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"javascript.preferences.importModuleSpecifierEnding": "js" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.md |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
## API 명세서 | ||
|
||
- 홈 화면 (지역별 미션 조회) | ||
- API Endpoint : GET /mission/area/{areaId} | ||
- Path Variable | ||
- areaId | ||
- Query String | ||
- ?sort=createdAt :생성 시간 기준으로 정렬) | ||
- Request Header | ||
- Authorization : Bearer {accessToken} | ||
- Request Body | ||
- GET 요청은 리소스 조회에 관한 메소드이기에 서버에 넣을 내용이 없음. | ||
- Status Code : 200 OK / 400 Bad Requset | ||
- 마이페이지 리뷰 작성 | ||
- API Endpoint : POST /review/{reviewId} | ||
- Path Variable | ||
- reviewId | ||
- Request Body | ||
```json | ||
{ | ||
"UserId": "Interger", | ||
"ShopId": "Interger", | ||
"Rating": "Float", | ||
"Content": "String", | ||
"Image": "String" | ||
} | ||
``` | ||
- Request Header | ||
- Authorization : Bearer {accessToken} | ||
- Request Body | ||
- GET 요청은 리소스 조회에 관한 메소드이기에 서버에 넣을 내용이 없음. | ||
- Status Code: 201 Created / 400 Bad Requset | ||
- 미션 목록 조회(진행 중, 진행 완료) | ||
- API Endpoint : GET /mission | ||
- Query String | ||
- ? ongoing | ?completed (상태 변경) | ||
- ?sort=createdAt :생성 시간 기준으로 정렬) | ||
- Request Header | ||
- Authorization : Bearer {accessToken} | ||
- Request Body | ||
- GET 요청은 리소스 조회에 관한 메소드이기에 서버에 넣을 내용이 없음. | ||
- Status Code : 200 OK / 400 Bad Requset | ||
- 미션 성공 누르기 | ||
- API Endpoint : PUT /mission/{missionId}/complete | ||
- Path Variable | ||
- missionId | ||
- Request Header | ||
- Authorization : Bearer {accessToken} | ||
- Request Body | ||
```json | ||
{ | ||
"Rating": 4.5, | ||
"Text": "String" | ||
} | ||
``` | ||
- Status Code : 200 OK / 400 Bad Requset | ||
- 회원 가입 하기 | ||
- API Endpoint : POST /users | ||
- Request Body | ||
```json | ||
{ | ||
"Id": "String", | ||
"Password": "String", | ||
"Name": "String", | ||
"Gender": "String", | ||
"Brithday": "String", | ||
"Address": "String", | ||
"PreferFood": ["String"] | ||
} | ||
``` | ||
- Status Code : 201 Created / 400 Bad Requset |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"name": "umc7th_study", | ||
"type": "module", | ||
"version": "1.0.0", | ||
"description": "INHA UMC Node.js 미션, 키워드 인증 레포지터리입니다!", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"start": "node src/index.js", | ||
"dev": "nodemon --exec node src/index.js" | ||
}, | ||
"author": "", | ||
"license": "ISC", | ||
"dependencies": { | ||
"express": "^5.0.0" | ||
}, | ||
"devDependencies": { | ||
"nodemon": "^3.1.7" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// const express = require("express"); // -> CommonJS | ||
import express from "express"; // -> ES6 | ||
|
||
const app = express(); | ||
const port = 3000; | ||
|
||
app.get("/", (req, res) => { | ||
res.send("Hello World!"); | ||
}); | ||
|
||
app.listen(port, () => { | ||
console.log(`Example app listening on port ${port}`); | ||
}); |