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.
- Host: GitHub
- URL: https://github.com/gurrudev/bloghub-backend
- Owner: gurrudev
- License: mit
- Created: 2024-08-23T07:29:48.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-08T08:22:20.000Z (over 1 year ago)
- Last Synced: 2025-04-09T12:38:00.343Z (about 1 year ago)
- Topics: bcrypt, express, jsonwebtoken, mongodb, nodejs, rest-api
- Language: JavaScript
- Homepage: https://bloghubapi.vercel.app
- Size: 990 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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
```