divyanshu-rawat / node-webapp-generator

A node.js application can be used to generate static websites.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A node.js application can be used to generate static websites.

forthebadge

Site generated is deployed on Heroku(https://node-site-generator.herokuapp.com/)

Description

  • Generates HTML files from EJS templates
  • layout file, so all pages have the same header, footer, navigation, etc.
  • Partials (blocks of reusable interface components)uses to ensure DRY Principle.
  • Data can be read through Read data from site.config.js file.

Folder Structure

public/

src/ assets/ pages/ partials/ layout.ejs

index.js site.config.js

Installation Instructions

  • Clone or download the repo. into any fresh temporary folder.

  • Cd into that root folder you just cloned locally.

  • Open terminal in the current folder and to install all dependencies by typing npm install

  • The generator code is inside a single file, index.js, that we can run with npm start, every time we want to
    rebuild the site.

  • Now typing

   npm run serve
  • will start a server !

Package Manager Used (NPM)

  • NPM is the default package manager for the JavaScript runtime environment Node.js.

Package.json (dependencies)

  • For dependencies refer Package.json.

Contributing

  1. Create your branch: git checkout -b my-new-feature

  2. Commit your changes: git commit -m 'Add some feature'

  3. Push to the branch: git push origin my-new-feature

  4. Send a Pull Request

  5. Enjoy!

About

A node.js application can be used to generate static websites.


Languages

Language:JavaScript 43.9%Language:CSS 36.9%Language:HTML 19.2%