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
- Host: GitHub
- URL: https://github.com/krguptaa/simple_website_nodejs
- Owner: krguptaa
- Created: 2018-08-28T13:09:23.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-29T09:09:10.000Z (over 7 years ago)
- Last Synced: 2025-02-13T19:40:40.281Z (about 1 year ago)
- Topics: ejs, express-generator, expressjs, framework, nodejs, view, website-nodejs
- Language: HTML
- Size: 1.6 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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