/belajar-nodejs

belajar nodejs

Primary LanguageJavaScript

Learn nodejs using express 4.x

  1. use git to clone git clone https://github.com/egin10/belajar-nodejs.git on terminal console
  2. use cd belajar-nodejs && npm install or cd belajar-nodejs && npm i to change directory and install module from package.json
  3. change this code on mysql.js, make it same like your database host, user, password etc. host: 'localhost', user: 'root', password: '', database: 'belajar_nodejs', port : 3306, you can see database structure on file belajar_nodejs.sql or you can import it to your mysql database.
  4. run using npm start or nodemon app
  5. server is running on http://localhost:3000/

explore it!