How to Deploy db.json Mock Server on Render || Host JSON server on GitHub | Host JSON API on Server
HTML-код
- Опубликовано: 31 июл 2024
- Use this Link to get index.js file
github.com/UmaSahni?tab=repos...
Hello everyone in this video you will learn to deploy your db.json file on render.com step by step.
Step 1 - Create git repository
Step 2 - Clone it on your device
Step 3 - Add package.json by using this command `npm init -y`
Step 4 - Install some dependency by using this command `npm i json-server cors json-serve` and add "start": "node index.js" in script
Step 6 - Create index.js file copy the code from my GitHub repository
Step 7 - Add db.json and add .gitignore file
After all this steps are completed use this command to push the code in your Github account.
git add .
git commit -m "Your message"
git push origin main
If you find this video helpful please subscribe to my channel and share this with your friends. If you have any queries ask in the comment section below I will be happy to answer you all.
Tags:
Host JSON server on GitHub,
How to Deploy db.json Mock Server,
How to deploy JSON server on render for free 2023,
render deployment failed,
json mock server,
json server,
node js server,
deploy json server to netlify,
deploy json server to versel
#deployment #render #github #database
Happy to see that,you are from Masai
Thank you for sharing, one of the most straightforward explained procedures to deploy db.json in youtube.
Thank you Sister, Great Explanation!!!🥰👌👌
what a clear explanation !! respect++
thank You So much for this video shairing
This solves my problem Thank you!!
Thank you Uma, you did it well. 🙂
My pleasure 😊
Thanks for the video, It helped a allot
Wow amazing 😍
Very nice explen 👌👌
Thank you queen, you saved my life
Justo lo que necesitaba, muchas gracias!
Welcome
Amazing video ❤
Thank you soo much dii😍😍
Thank you very much😍😍😍😍
Amazing video ❤️
Thank you!
You are the Best!!
Thank you so much ❤
Thank you so much
Thanks so much..
Thanks.🙏🏾🙏🏾
Thanx suman sonu mam
Great
thank you so much
thank you
Thank you
thank you so much learned a new thing today
Happy coding ❤️
Thanks
This video was very helpful! Thankyou
Glad to hear that ❤️. Any other topics that needs to be cover in the upcoming videos feel free to mention that.
@@SumansAcademy i would love to learn about advanced performance optimisation techniques with react, just a thought. Anyways I am grateful for what you guys have already been sharing 🏆
gracias sirvio de mucha ayuda a mi proyecto
Encantada de escuchar eso
wow nice video, and whhat about to deploy rails that the only think that's keeps me stuck
Thank you for the course, please is there a way I can feach images 🤲
Why i cannot go to web service. It sayas payments method rquired
i have successfully run this json server on render but unfortunatly cant fetch with Angular which i have deployed on netlify , please give me solution
only video with great knowledge and 💀
Thanks. By the way what what do you mean by 💀?
after deleting the data its getting deleted for the moment, but after some time, all the is getting back which was present in the json file initially, please give the solution
did you got any solution
how add routes for HTTP method?
what are the settings to get the json deployed cause after it builds the start command fails to complete. And I am using react as my framework where should the index.js file be inside the src folder or outside?
As per my experience in react I have always created a separate repository and deployed my json server.
If you will keep json server outside src folder then you might be using localhost to run it on your computer.
But for deployment there are some other things also that we have to keep in mind.
I suggest you deploy json server separately from react app. In order make fetch requests use the deployed end points.
If you think deployment separately is difficult for then you can watch this video where I have shown to do it very easily. ruclips.net/video/W9sbA1a2-Ag/видео.html
Error: Cannot find module 'json-server' i've done every step you demonstrated in video
ruclips.net/video/W9sbA1a2-Ag/видео.htmlsi=oBQRiD0ziVzLsLjh
This video will help you.
I followed each step. First everything is OK. But after few hours all data are resetting to those data that I have uploaded for the very first time during creating and deploying the JSON server repo. Please help..............
Bro have you gotten any solution to that?
can we perfom whole CRUD with that data by accessing that render site URL?
Yes you can perform all CRUD operations with this render site URL.
mem sab to thik se chal rha hai lekin image me problems aa rhi hai
can we do crud operation ?? or it is only for getting GET data.
All CRUD operations are possible
how i deploy react website with json server on github?
Please tell me what are you looking for since I am not able to understand.
1. Do you want to deploy your react website on github?
2. Do you want to deploy your json server on github?
3. Do you want to first deploy json server on render.com and then deploy your react app with deployed json server on github?
hey i like your video but i am working with angular what should i write in "start" i hope you respand me
This all is dedicated to only deployment of your JSON Server. No matter what framework or library you use or even in plain javaScript the process of deployment will not change. All this thing we did only to get deployed api link. I hope you understand. If not ask further.
On the hosted server, are GET requests the only ones possible?
All CRUD operations possible.
@@SumansAcademy no post method is not working
Yes correct have you got any solution for that??@@satyamanikanta-iy9iq
thanks for tutorial! very helpfull. I have a question - do you know solution to deploy a site for free which is using this hosted API? I tried netlify, but it hosts only with SSL certificate which is enable in free version of render.
Try to deploy your app on vercel.com/ its free and my favourite. If you face any issues please mention it.
@@SumansAcademy thanks for quick response. Unfortunatelly vercel doesn't allow to disable ssl certificate too.
May be you can deploy your website on AWS (Amazon Web Service) which supports redirection of https to http (disable SSL).
AWS - Gives 12 months free trial.
thank you
3:41
How will we upload the file after this minute?
Watch this video you will get your answer.
ruclips.net/video/W9sbA1a2-Ag/видео.htmlsi=SRTaiG60KCiLNIb5
Pleasy, What version node are you use ?
Facings any issues with json server deployment watch this ruclips.net/video/W9sbA1a2-Ag/видео.htmlsi=yuf0ptERBGODpG51
It is throwing me this error after I followed every step : Error: Cannot find module 'json-server'
Check in your package.json file in
"dependencies" : {"json-server":"^0.1.0"}
Is installed.
If not then run this command - npm i json-server
Watch this video here it is very easy to deploy json-server. ruclips.net/video/W9sbA1a2-Ag/видео.htmlsi=a3qGgxucSbOqTA7P
yes same
In which unit are u in?
6th
throw err;
^
Error: Cannot find module 'json-server'
Require stack:
- /opt/render/project/src/index.js
this is coming
please do `npm i json-server`
i do this but error is coming
Check whether you have imported it correct in index.js
Use this method instead it is very easy. ruclips.net/video/W9sbA1a2-Ag/видео.htmlsi=WL70oJ4PXQw7G4z5
Hi, render is not free anymore?
render.com is still free. Check here render.com/pricing
Key points to remember :
1. You are choosing "For hobby projects" Instance type.
2. You are logged in with your Google account or Github account in render.com
❌Avoid using temp mail accounts during signing up process. If you do so it will ask for credit card details.
@talantnaeem5135 if you face any issues feel free to ask.
How to Upload Mern Stack website??
Wait today I will create a video for that.
@@SumansAcademy okay. Free Upload krne ka btayiyega. With data base working
Ha sure
Watch this : ruclips.net/video/AVOrmKA4FyU/видео.html
I first created a Mern Stack project to deploy it. And you know it takes time to create a video then edit it and then create a thumbnail. Let me know whether it has helped you ?
What's json-serve?
same dought bro... if you get ans.... pls share to me bro🙏🏻
@@naveendoddi7683 it is just some misunderstanding or misspelling, there is no package name like that (u can see in package.json, its version is 0.1.0) and it has no purpose here
It's tool from npm provide fake APIs to frontend developers
Love you
thank you