Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/gurrudev/social-media-api

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/social-media-api

api express javascript mongodb mongoose nodejs rest-api

Last synced: 4 days 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

        

# Social-Media-Api (BlobHub API's)

📦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
```