Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/gurrudev/social-media-api
- Owner: gurrudev
- License: mit
- Created: 2023-06-20T10:29:15.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-23T06:44:30.000Z (3 months ago)
- Last Synced: 2024-08-24T06:37:06.270Z (3 months ago)
- Topics: api, express, javascript, mongodb, mongoose, nodejs, rest-api
- Language: JavaScript
- Homepage: https://bloghub-api.vercel.app
- Size: 65.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Social-Media-Api (BlobHub API's)
📦Install
```sh
$ npm install
```
💻UsageReplace 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
```