Skip to content

Parterdev/nodejs-webserver-handlebars

Repository files navigation

nodejs Node.js | Web server with template engine

This project was created with Node.js v18.4.0 and JavaScript.

1. Description

This project is a new practical item of my Node.js app series that made with:

  • Node.js v18.4.0
  • express - (minimalist web framework to Node.js)
  • dotenv - (environment variables from .env file)
  • hbs - (view engine for handlebars.js based on mustache template)
  • 😎 Of course, I used things like views, partials and completely web template.

¡Important code notes!

Options:
  - The folder (public) is used to store (limelight-html) original web template.
  - The main logic lives in the app.js (root file).
  - The handlebars template lives in the views folder.
  - To install dependencies, run: $ npm install || $ yarn install
  - To watch js files changes, run: $ npm app.js -w || $ nodemon app.js 
nodejs nodejs
To test different flavors of running app.js
  - To initialize app (from backend side with handlebars), run: $ npm start
  - To initialize app (with React front), run: $ node app-react.js -w
  - To initialize app (with Angular front), run: $ node app-angular.js -w

2. Notice

  • Feel free to fork this repo and add your own twist!

About

Node.js server with handlebars web template engine (SSR)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published