Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7주차] 기본 과제 제출 #6

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/YoonHan.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/sshConfigs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@

|Week|Theme|Basic|Advanced|
|------|-----|---|---|
|Week1|JS, TS 기초|||
|Week1|JS, TS 기초|✔️|✔️|
|Week2|server 기초, HTTP, REST, express 기초|✔️|✔️|
|Week3|EC2, S3, Prisma|✔️|✔️|
9 changes: 8 additions & 1 deletion week2-express/src/api/members.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,14 @@ router.get("/:memberId", (req:Request, res:Response) => {

// query string 받아오기
router.get("/", (req: Request, res: Response) => {
console.log(`query string : ${req.query.name}`)
console.log(`query string : ${req.query.title}`)

const postTitle:String = req.query.title;

if (postTitle == "윤한 ") {
console.log("윤한입니다.")
}

})


Expand Down
2 changes: 1 addition & 1 deletion week2-express/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import express, { NextFunction, Request, Response } from "express";

const app = express(); // express 객체를 받아온다.
const PORT = 3000; // port를 설정
const PORT = 3001; // port를 설정

app.use(express.json()); // express에서 request body를 json으로 받아온다.
app.use("/api", require("./api")); // use -> 모든 요청
Expand Down
7 changes: 7 additions & 0 deletions week3/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
node_modules

.env

prisma/dev.db

prisma/migrations/20221103165411_added_password/
6 changes: 6 additions & 0 deletions week3/nodemon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"watch": ["src", ".env"],
"ext": "js,ts,json",
"ignore": ["src/**/*.spec.ts"],
"exec": "ts-node --transpile-only ./src/index.ts"
}
Loading