Notice
Recent Posts
Recent Comments
Link
๋ฐ์ํ
์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- ์๋ฐ์คํฌ๋ฆฝํธ
- Javascript
- ์ต๊ทค๋ฌ
- error
- CLI
- angular
- node
- npm
- ํ์ ์คํฌ๋ฆฝํธ
- nodejs
- react
- Nextjs
- ์๋ฌ
- ๋ ธ๋์ ์ด์์ค
- Array
- ๋ ธ๋js
- TypeScript
- Programmers
- ๋ง์์ปค๋ฅ์
- codingtest
- ๋ ธ๋
- ๋ฐฑ์๋
- ํ๋ก๊ทธ๋๋จธ์ค
- ์ฝ๋ฉํ ์คํธ์ฐ์ต
- ๊ฐ๋ฐ
- Method
- ์ฝ๋ฉํ ์คํธ
- slice
- Reduce
- indexOf
Archives
- Today
- Total
๋ชฉ๋กexpress (1)
Suzie's Blog
[Express] Express Server ๊ตฌ์ถํ๋ ๋ฐฉ๋ฒ | ์๋ฒ๊ฐ ์ผ์ ธ์๋์ง ํ์ธํ๋ ๋ฐฉ๋ฒ
Express server ๊ตฌ์ถํ๋ ๋ฐฉ๋ฒ 1. ๋๋ ํ ๋ฆฌ๋ฅผ ์์ฑํ๋ค mkdir directoryName 2. index.js ํ์ผ์ ๋ง๋ ๋ค 3. npm init ์ ์คํํ๋ค (-y : yes for every single questions) npm init -y 4. Express ํจํค์ง๋ฅผ ์ค์นํ๋ค npm i Express 5. Server Application์ index.js์ ์์ฑํด์ค๋ค import express from "express"; const app = express(); const port = 1000; app.listen(port, () => { console.log(`Server running on port ${port}.`); }); 6. ์๋ฒ๋ฅผ ์ผ์ค๋ค node index.js ์๋ฒ๊ฐ..
๊ฐ๋ฐ
2023. 9. 1. 17:02