An open API service indexing awesome lists of open source software.

https://github.com/gurrudev/bloghub-backend

This repository of API is related to a blog website, where user can signup and login with encrypted credentials. This API provides ability to create, read, update or delete the blog.
https://github.com/gurrudev/bloghub-backend

bcrypt express jsonwebtoken mongodb nodejs rest-api

Last synced: 5 months ago
JSON representation

This repository of API is related to a blog website, where user can signup and login with encrypted credentials. This API provides ability to create, read, update or delete the blog.

Awesome Lists containing this project

README

          

# BlogHub-Backend

📦Install

```sh
$ npm install
```

💻Usage

Replace MongoDB connection string in config/dbConfig.js
```js
const dbConnect = () =>{
try {
mongoose.connect(`mongodb+srv://${process.env MONGO_CRED}.mongodb.net/BLOG-API`).then(()=>{
console.log('DB Connected :)')
}).catch((e)=>{
console.log(e)
})
} catch (error) {
console.log(error)
}
}
```

🚀Start
```sh
$ npm start
```