๐Ÿš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more โ†’
Socket
Sign inDemoInstall
Socket

generator-weplajs

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-weplajs

REST API server by expressjs framework

0.0.25
latest
Source
npm
Version published
Maintainers
1
Created
Source

generator-weplajs

ExpressJS ํ”„๋ ˆ์ž„์› ๊ธฐ๋ฐ˜์˜ REST API ์„œ๋ฒ„ ๊ฐœ๋ฐœ์„ ์œ„ํ•œ ์š”๋งจ ์ œ๋„ˆ๋ ˆ์ดํ„ฐ์ž…๋‹ˆ๋‹ค.

๋ฒ„๊ทธ๋ฆฌํฌํŒ…๊ณผ ์ด์Šˆ๋Š” ์–ธ์ œ๋‚˜ ํ™˜์˜์ž…๋‹ˆ๋‹ค.๐Ÿ˜
์–ธ์ œ๋“ ์ง€ ๊นƒํ—™ ์ด์Šˆ์— ๋“ฑ๋กํ•ด ์ฃผ์„ธ์š”.

๋ช…๋ น์–ด

  • weplajs: ์–ดํ”Œ๋ฆฌ์ผ€์ด์…˜ ์„ค์น˜
  • weplajs:api: API ์ถ”๊ฐ€
  • weplajs:error: ์—๋Ÿฌ์ฝ”๋“œ ์ถ”๊ฐ€

์„ค์น˜

๋จผ์ € npm์„ ์ด์šฉํ•ด Yeoman๊ณผ generator-weplajs๋ฅผ ์—ฌ๋Ÿฌ๋ถ„์˜ ์ปดํ“จํ„ฐ์— ์„ค์น˜ํ•˜์„ธ์š”. node.js๋Š” ์ด๋ฏธ ์„ค์น˜๋˜์–ด ์žˆ๋‹ค๊ณ  ๊ฐ€์ •ํ•ฉ๋‹ˆ๋‹ค.

npm install -g yo
npm install -g generator-weplajs

๊ทธ๋ฆฌ๊ณ ๋‚˜์„œ ์—ฌ๋Ÿฌ๋ถ„์˜ ์ƒˆ๋กœ์šด ํ”„๋กœ์ ํŠธ๋ฅผ ๋งŒ๋“ค์–ด ๋ณด์„ธ์š”.

yo weplajs

์‹คํ–‰

npm start
[STARTUP_INFO] Sync Database {"force":true}
[STARTUP_INFO] Server listening on port 3000 development mode

์ด์ œ ๋ธŒ๋ผ์šฐ์ ธ์—์„œ http://127.0.0.1:3000 ์ฃผ์†Œ์— ์ ‘์†ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

http://127.0.0.1:3000/swagger์— ์ ‘์†ํ•˜์—ฌ ๊ฐœ๋ฐœ ๋ฌธ์„œ๋„ ํ™•์ธํ•ด ๋ณด์„ธ์š”.

ํ…Œ์ŠคํŠธ

Mocha, Supertest๋กœ API์˜ ์œ ๋‹› ํ…Œ์ŠคํŠธ๋ฅผ ์‹คํ–‰ํ•ด ๋ณด์„ธ์š”.

npm test

Keywords

yeoman-generator

FAQs

Package last updated on 24 Nov 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts