main
Yik Teng Hie 5 years ago
parent 30d9237a7a
commit be5175b469

@ -1,11 +1,11 @@
# Express JS
[TOC]
# Create Express JS project
[Home](../../README.md)
[Reference](https://expressjs.com/en/starter)
Create a project skeleton
Option1 : Using basic `npm` step
@ -33,6 +33,35 @@ $ npm install
Bootstrapped project folders
```sh
C:.
| app.js
| package-lock.json
| package.json
|
+---bin
| www
|
+---public
| +---images
| +---javascripts
| \---stylesheets
| style.css
|
+---routes
| index.js
| users.js
|
\---views
error.jade
index.jade
layout.jade
```
Launch `vscode` IDE
```sh
@ -65,7 +94,7 @@ app.use('/helloworld', helloworldRouter);
Create new routing for `helloworld.js`
Create new routing for `./routes/helloworld.js`
```javascript
var express = require('express');
@ -113,5 +142,9 @@ Welcome to Express
Use *Postman* to execute 'POST', 'PUT' methods
[json](./postman_collection.json)
[Postman json](./postman_collection.json)
# Create Login
# Create

Loading…
Cancel
Save