Skip to content

Binar Academy Full Stack Web Development Challenge Chapter 5 - Migrating to Node.js

Notifications You must be signed in to change notification settings

alvinlaurente/binar-challengech5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

binar-challengech5

Binar Academy Full Stack Web Development Challenge Chapter 5 - Migrating to Node.js

Step-by-step to run the app

  1. Clone the repository.
  2. Open directory.
  3. Run in terminal : npm install to install all required packages that listed in packages.json.
  4. Run Server in terminal : npm start
  5. To test if the routes work, try to click the 1st image of carousel (Rock Paper Scissor image).
  6. Try to go to undefined routes (ex: localhost:3000/abcde or localhost:3000/12345) and you will be redirected into 404 page.

Packages used :

  • Babel : Transcompiler
  • Express : Node.js Framework
  • EJS : View Engine
  • ESLint : Linter - airbnb based
  • Morgan : Logger (see the log on node console)

Folders :

  • controllers -> act as controller in MVC pattern.
  • models -> act as data model in MVC pattern.
  • routes -> web routes
  • views -> act as views in MVC pattern using EJS.
  • public -> Serve static files (css, images, js)

About

Binar Academy Full Stack Web Development Challenge Chapter 5 - Migrating to Node.js

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published