Skip to content

Latest commit

 

History

History
92 lines (58 loc) · 1.48 KB

README.md

File metadata and controls

92 lines (58 loc) · 1.48 KB

Kamis, 20 September 2018

Homework: Follows node.js and express tutorial

https://www.youtube.com/watch?v=gnsO8-xJ8rs&t=3671s

Things we've learned


  1. Nodejs syntax

  2. Express framework

  3. View engine - ejs

  4. Routing (app.get())

  5. Deployment with heroku

     // install heroku
     npm install heroku -g
     
     // login
     heroku login
     
     // create heroku project 
     heroku create <nama_aplikasi>
     
     // kalo belom commit
     git commit -m 'blabla'
     
     // push to heroku
     git push heroku master
    
  6. Try mongoDB using mlab (cloud database)

  7. Mongoose connection and create query

Things we've got after doing "Homework"


  1. Beda Node vs Nodemon - Bams
  2. Cara bikin form
  3. Misahin header sama footer di index.ejs (partials) - Aurel
  4. Ilmu baru

Obstacles from doing "Homework"


Faisal

  • Semua code nya ga ngerti

Bams

  • mongo error failed to connect to server

Indah

  • Kalo ada yang kosong error, field input
  • Delete customer

Aurel

  • Nodemon (gapake nama file) → error

Haykal

  • Pembiasaan ulang

Bil

  • Express buat apa
  • body parser
  • res.render, trus . . yang lain

Faris

  • Belum ngerti
  • body parser
  • validator middleware
  • mvc
  • mongodb kenapa harus manual startnya

Aman

  • Fungsi per method
  • request, response, app
  • masih ngerasa ribet, susah

Reina

  • Insert user gabisa yang di terminal
  • belum ngerti fungsi fungsinya buat apa aja