Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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')
```