Simple blog website using NodeJs and MongoDB where we can add blogs. and MongoDB is used for storing Data.
- NodeJs
- MongoDB
- Html Css and Bootstrap
- Mongoose
Prerequisites:
- Install NodeJs in your System. click on the link to install: https://nodejs.org/en/download/
- Install NPM too in your system, for more details on how to install Node Pack Manager (NPM) and NodeJs read the article in the link. https://phoenixnap.com/kb/install-node-js-npm-on-windows
- Once NodeJs and NPM are installed, on your terminal run the two codes
- $ node --version (type the code only after $ sign)
- $ npm --version
- Then after you have downloaded the following above folders on your terminal type cd /the path of your project/
- Install MongoDB into your system, click on the Link to download: https://www.mongodb.com/try/download/community . To check if its downloaded type $mongo --version (If you get sometime like v6.01.. you are on the right path go ahead).
- Then go to your terminal, make sure you are the right path (/downloads/BlogWebsite).
Type these following commands on the terminal.- $ npm install express
- $ npm install body-parser
- $ npm install ejs
- $ npm install mongoose
- To run your app on terminal type node app.js
- Go to your favorite browser and type, localhost:3000 or type http://localhost:3000