Building Website for a solution of zero Hunger
All html files should be stored in views directory, but it's extension should be '.hbs' (handlebars) instead of '.html'.
All css and image files should be stored in public directory.
All 'href' attributes will have it's base directory in public directory. For example, to add css link in '.hbs' files present at views the code should be
link rel="stylesheet" href="css/style.css"
instead of
link rel="stylesheet" href="../public/css/style.css"
- Create a new codespace. Wait for the codespace to be build properly.
- Open git bash terminal.
- Run "npm i nodemon" in the terminal. Wait for the download and installation.
- Type "npm run dev" in the terminal.
- Click on "Port" in the terminal options.
- Click on the "Open in Browser" to enjoy Live Server.