Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/akashchouhan16/nodejs-blogapp
A full-stack Blog-post app using MongoDB, Node, and Express.
https://github.com/akashchouhan16/nodejs-blogapp
blogapp ejs expressjs mongodb nodejs
Last synced: 20 days ago
JSON representation
A full-stack Blog-post app using MongoDB, Node, and Express.
- Host: GitHub
- URL: https://github.com/akashchouhan16/nodejs-blogapp
- Owner: akashchouhan16
- License: mit
- Created: 2020-09-30T19:45:20.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-07-19T08:06:55.000Z (over 1 year ago)
- Last Synced: 2024-10-24T21:59:19.700Z (2 months ago)
- Topics: blogapp, ejs, expressjs, mongodb, nodejs
- Language: EJS
- Homepage:
- Size: 66.4 KB
- Stars: 0
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BlogApp
[![GitHub license](https://img.shields.io/github/license/Naereen/StrapDown.js.svg)](https://github.com/Naereen/StrapDown.js/blob/master/LICENSE)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)A full-stack Blog post web application using [MongoDb](https://www.mongodb.com/, "Visit URL"), [Node](https://nodejs.dev/, "Visit URL") with [Expressjs](https://expressjs.com/, "Visit URL")
### Dependencies
- `body-parser`
- `express`
- `express-sanitizer`
- `ejs`
- `dotenv`
- `mongoose`
- `method-override`---
## How to run the application?
**Install Dependencies**
```bash
-> npm install
OR
-> npm i
```**To Start the Development server :**
```bash
npm run dev
```**To Start the Production server :**
```bash
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://:@cluster0.c1tnc.mongodb.net/myFirstDatabase?retryWrites=true&w=majority`'---
[![forthebadge](https://forthebadge.com/images/badges/made-with-javascript.svg)](https://forthebadge.com)
[![forthebadge](https://forthebadge.com/images/badges/open-source.svg)](https://forthebadge.com)