Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/idindrakusuma/learning-node-express
Learning ExpressJS
https://github.com/idindrakusuma/learning-node-express
expressjs learning learning-by-doing node
Last synced: 6 days ago
JSON representation
Learning ExpressJS
- Host: GitHub
- URL: https://github.com/idindrakusuma/learning-node-express
- Owner: idindrakusuma
- Created: 2018-08-03T15:34:55.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-27T15:26:40.000Z (over 6 years ago)
- Last Synced: 2024-12-22T17:15:56.043Z (12 days ago)
- Topics: expressjs, learning, learning-by-doing, node
- Language: HTML
- Homepage:
- Size: 14.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Learning ExpressJS
## How to run?
- Clone this repo on your local machine
- Install node modules using `npm install`
- Run the server using `npm start`
- Done## * Importan to remember
Express adalah sebuah framework minimalis untuk node js. Express sangat cocok bagi pemula yang menggunakan framework di NodeJS.- How to install express? `npm install express --save`
### Template Engine
Template Engine adalah salah satu fitur yang ada di Express. Template engine yang digunakan pada latihan kali ini adalah template engine Handlebars.js (https://www.npmjs.com/package/hbs).How to set handlebars in express?
- install the module `npm install hbs`
- Set the modules
```javascript
const express = require('express')
const hbs = require('hbs')
/* set the hbs in express */
const app = express();
app.set('view engine', 'hbs')
```