An open API service indexing awesome lists of open source software.

https://github.com/krguptaa/simple_website_nodejs

Create a simple Website with NodeJS, Express & EJS view engine
https://github.com/krguptaa/simple_website_nodejs

ejs express-generator expressjs framework nodejs view website-nodejs

Last synced: 5 months ago
JSON representation

Create a simple Website with NodeJS, Express & EJS view engine

Awesome Lists containing this project

README

          

# Create a simple Website with NodeJS, Express & EJS view engine

## Installation

* Clone this repo: ``` git clone https://github.com/gupta-kamlesh-r/simple_website_nodejs.git ```
* Install dependencies using [npm](https://www.npmjs.com/) javascript package manager: ``` npm install ```
* Start node server with [nodemon](https://nodemon.io/): ``` nodemon start ```
* Tune to url: ``` http://localhost:3000 ```

All boilerplate code managed by [express generator](https://expressjs.com/en/starter/generator.html) framework adhering to DRY rule. Routes are defined in routes/index.js file, static view pages are in views folder. I have implemented partials concept to avoid code redundancy in html using EJS view engine. Css and Javascript files are stored in public folder.

## Screenshot