Step by step build this app from beginning.
Use the application generator tool, express-generator, to quickly create an application skeleton (kerangka applikasi).
- Install express generator in global. $ npm install express-generator -g
- Run this if you want use view engine jade for default. $ express express-app OR, If you wanna change the view engine, for example pug. So run this : $ express --view=pug express-app
- Navigate to the location of your project folder $ cd express-app
- Install dependencies $ npm init
- Install git $ git init
- Create readme file and add to git $ git add README.md
- Commit ke git git commit -m "first commit"
- Add .gitignore and write file path for ignore $ touch .gitignore
Install socket io for websocket and then save in package.json $ npm install socket.io --save
Step by step run this app from clone this repository.
- fork my repository
- clone this repository on your local $ git clone [url]
- Install dependencies $ npm install
Run application on MAC or Linux $ DEBUG=express-app:* npm start Run application on Windows $ set DEBUG=express-app:* & npm start