DEV Community

Cover image for Blog-template made with EJS, Node.js & Express.js
Efosa Collins EVBOWE
Efosa Collins EVBOWE

Posted on

Blog-template made with EJS, Node.js & Express.js

The application is built with Node.js, Express.js, EJS, Lodash and CSS together with Body-Parser. The said technologies were used for reasons such as speed, efficiency and readability since most developers have a working knowlegde of JavaScript.

Working with EJS and request handlers was quite the pain and this is the fruit of the pain.

Installation

  • Clone repository with the command git clone <url> ```

$ git clone https://github.com/efecollins/blog-template-ejs.git


- Run `npm i` in your terminal to install `node_modules` and all dependencies in `package.json`
Enter fullscreen mode Exit fullscreen mode

$ npm i

- Run `nodemon` in your terminal if installed to start the node server and watch for changes in `app.js`
Enter fullscreen mode Exit fullscreen mode

$ nodemon


- Or run `node app.js` to start the server if `nodemon` is not installed
Enter fullscreen mode Exit fullscreen mode

$ node app.js


- The following message should be logged to your console signifying success.

Enter fullscreen mode Exit fullscreen mode

Server started on port 3000


- Make changes as you are pleased

## More Info
- To compose a new post enter `localhost:3000/compose` in your web browser's search bar.

- To compose a new post in the live site visit [https://busy-blue-agouti-cap.cyclic.app/compose](https://busy-blue-agouti-cap.cyclic.app/compose)

- Contributions to this project are allowed provided they make the template easy to use



![Twitter Follow](https://img.shields.io/twitter/follow/EfeCollins7?color=blue&style=social)
Enter fullscreen mode Exit fullscreen mode

Top comments (0)