Skip to content

akashchouhan16/Nodejs-BlogApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BlogApp

GitHub license PRs Welcome

A full-stack Blog post web application using MongoDb, Node with Expressjs

Dependencies

  • body-parser
  • express
  • express-sanitizer
  • ejs
  • dotenv
  • mongoose
  • method-override

How to run the application?

Install Dependencies

    -> npm install
    OR
    -> npm i

To Start the Development server :

 npm run dev

To Start the Production server :

npm run start

Connecting to the DataBase Using MongoDB

  • Make sure latest version of dotenv Module is installed.
  • Create a .env file.
  • For setting up a local MongoDb DataBase
    • Mongo must be locally installed on your system.
    • Add to .env,
      • localDBURL='mongodb://localhost:27017/Blogapp'
  • For setting up a Cloud Database Using Atlas, Add to .env
    • cloudDBURL='mongodb+srv://<EnterMongoDBAtlas_UserName>:<EnterMongoDBAtlas_Password>@cluster0.c1tnc.mongodb.net/myFirstDatabase?retryWrites=true&w=majority'

forthebadge forthebadge

About

A full-stack Blog-post app using MongoDB, Node, and Express.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors