LIVE: https://one8-blogapi-deployment.onrender.com/
This repository is created for learning deployment with render.com.
There is a few important things to be carefull on deployment...
Important
Before starting , take the connection string with password on mongodb
Add connection string in .env file.
Edit your ip address on MongoDbAtlas / SECURITY / Network Access / Ip Access List => Your Ip, click Edit Action then change the Access List Entry to : 0.0.0.0
Go to render.com
Build command: npm i
Start command: node .
Add Manuel environment ( add your .env variables here)
Create deployment.
Tip
Samples
https://one8-blogapi-deployment.onrender.com/user => get users
https://one8-blogapi-deployment.onrender.com/blog/posts => get posts
https://one8-blogapi-deployment.onrender.com/blog/posts/65f571ad8024ae37f6e9a1ab => get One Post with id