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

Комментарии • 97

  • @sujoymandal1902
    @sujoymandal1902 27 дней назад +1

    Happy to see that,you are from Masai

  • @rajeshpradhan9562
    @rajeshpradhan9562 Год назад +3

    Thank you for sharing, one of the most straightforward explained procedures to deploy db.json in youtube.

  • @Manishjovi
    @Manishjovi 9 месяцев назад +1

    Thank you Sister, Great Explanation!!!🥰👌👌

  • @ManoharR-di4km
    @ManoharR-di4km 2 месяца назад

    what a clear explanation !! respect++

  • @wubsumon5140
    @wubsumon5140 10 месяцев назад +1

    thank You So much for this video shairing

  • @daniemae
    @daniemae 18 дней назад

    This solves my problem Thank you!!

  • @jurajbadal6741
    @jurajbadal6741 7 месяцев назад

    Thank you Uma, you did it well. 🙂

  • @mohitsoni4345
    @mohitsoni4345 Год назад

    Thanks for the video, It helped a allot

  • @nafcreative
    @nafcreative Год назад

    Wow amazing 😍

  • @SurajSURAJ-hm9kb
    @SurajSURAJ-hm9kb Год назад +1

    Very nice explen 👌👌

  • @anarosol6133
    @anarosol6133 3 месяца назад

    Thank you queen, you saved my life

  • @lonelyraven3300
    @lonelyraven3300 Месяц назад

    Justo lo que necesitaba, muchas gracias!

  • @nemlyemer3578
    @nemlyemer3578 11 месяцев назад +1

    Amazing video ❤

  • @khushdevyogi6511
    @khushdevyogi6511 Год назад

    Thank you soo much dii😍😍

  • @davismeru7985
    @davismeru7985 11 месяцев назад +1

    Thank you very much😍😍😍😍

  • @miss__eliza2317
    @miss__eliza2317 Год назад

    Amazing video ❤️

  • @umbralcompendium
    @umbralcompendium Год назад

    Thank you!

  • @ajaygonepuri2285
    @ajaygonepuri2285 Год назад

    You are the Best!!

  • @HieuLe-ni4dx
    @HieuLe-ni4dx Год назад

    Thank you so much ❤

  • @deveshsuryawanshi2021
    @deveshsuryawanshi2021 Год назад

    Thank you so much

  • @programmingprojects9134
    @programmingprojects9134 Год назад +1

    Thanks so much..

  • @OtonielEmanuel
    @OtonielEmanuel 3 месяца назад +1

    Thanks.🙏🏾🙏🏾

  • @ritik_kumar024
    @ritik_kumar024 Год назад +1

    Thanx suman sonu mam

  • @karthikm3849
    @karthikm3849 2 месяца назад

    Great

  • @mrshabbar
    @mrshabbar 5 месяцев назад

    thank you so much

  • @user-mr8rv8yb8v
    @user-mr8rv8yb8v 9 месяцев назад +1

    thank you

  • @sifoamama2673
    @sifoamama2673 8 месяцев назад

    Thank you

  • @udayvlogs4real747
    @udayvlogs4real747 6 дней назад

    thank you so much learned a new thing today

  • @Умарбек-Махмадиев
    @Умарбек-Махмадиев Месяц назад +1

    Thanks

  • @bluevojka
    @bluevojka 10 месяцев назад

    This video was very helpful! Thankyou

    • @SumansAcademy
      @SumansAcademy  10 месяцев назад +1

      Glad to hear that ❤️. Any other topics that needs to be cover in the upcoming videos feel free to mention that.

    • @bluevojka
      @bluevojka 10 месяцев назад

      @@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 🏆

  • @eosorto55
    @eosorto55 10 месяцев назад

    gracias sirvio de mucha ayuda a mi proyecto

  • @blackcoder2510
    @blackcoder2510 Год назад

    wow nice video, and whhat about to deploy rails that the only think that's keeps me stuck

  • @wisdomobumneme6072
    @wisdomobumneme6072 Год назад

    Thank you for the course, please is there a way I can feach images 🤲

  • @AbdulLatif-jm8wg
    @AbdulLatif-jm8wg Год назад

    Why i cannot go to web service. It sayas payments method rquired

  • @jyotiprakashmallik4654
    @jyotiprakashmallik4654 4 месяца назад

    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

  • @rahulsajwan1851
    @rahulsajwan1851 3 месяца назад

    only video with great knowledge and 💀

    • @SumansAcademy
      @SumansAcademy  3 месяца назад

      Thanks. By the way what what do you mean by 💀?

  • @user-ku3gu7rl1t
    @user-ku3gu7rl1t Год назад +1

    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

  • @xGL00M
    @xGL00M 11 месяцев назад

    how add routes for HTTP method?

  • @michellemungai4527
    @michellemungai4527 Год назад

    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?

    • @SumansAcademy
      @SumansAcademy  Год назад +1

      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

  • @krishnakondapalli5385
    @krishnakondapalli5385 5 месяцев назад +1

    Error: Cannot find module 'json-server' i've done every step you demonstrated in video

    • @SumansAcademy
      @SumansAcademy  5 месяцев назад

      ruclips.net/video/W9sbA1a2-Ag/видео.htmlsi=oBQRiD0ziVzLsLjh
      This video will help you.

  • @soumyasankardas7767
    @soumyasankardas7767 5 месяцев назад

    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..............

    • @06-tusharbisht5
      @06-tusharbisht5 2 месяца назад

      Bro have you gotten any solution to that?

  • @talatnaeem5135
    @talatnaeem5135 29 дней назад

    can we perfom whole CRUD with that data by accessing that render site URL?

    • @SumansAcademy
      @SumansAcademy  28 дней назад +1

      Yes you can perform all CRUD operations with this render site URL.

  • @premium_lofi
    @premium_lofi Год назад

    mem sab to thik se chal rha hai lekin image me problems aa rhi hai

  • @soumen4384
    @soumen4384 5 месяцев назад

    can we do crud operation ?? or it is only for getting GET data.

    • @SumansAcademy
      @SumansAcademy  5 месяцев назад

      All CRUD operations are possible

  • @vidhayak7392
    @vidhayak7392 2 месяца назад

    how i deploy react website with json server on github?

    • @SumansAcademy
      @SumansAcademy  2 месяца назад

      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?

  • @aymenbenmassoud8465
    @aymenbenmassoud8465 Год назад

    hey i like your video but i am working with angular what should i write in "start" i hope you respand me

    • @UmaSahni.
      @UmaSahni. Год назад

      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.

  • @user-kq4lz8cc4y
    @user-kq4lz8cc4y Год назад +1

    On the hosted server, are GET requests the only ones possible?

    • @SumansAcademy
      @SumansAcademy  Год назад

      All CRUD operations possible.

    • @satyamanikanta-iy9iq
      @satyamanikanta-iy9iq Год назад

      @@SumansAcademy no post method is not working

    • @06-tusharbisht5
      @06-tusharbisht5 4 месяца назад

      Yes correct have you got any solution for that??​@@satyamanikanta-iy9iq

  • @NGNails
    @NGNails 3 месяца назад

    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.

    • @SumansAcademy
      @SumansAcademy  3 месяца назад +1

      Try to deploy your app on vercel.com/ its free and my favourite. If you face any issues please mention it.

    • @NGNails
      @NGNails 3 месяца назад

      @@SumansAcademy thanks for quick response. Unfortunatelly vercel doesn't allow to disable ssl certificate too.

    • @SumansAcademy
      @SumansAcademy  3 месяца назад

      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.

  • @mahmoudmosallmy2843
    @mahmoudmosallmy2843 10 месяцев назад

    thank you
    3:41
    How will we upload the file after this minute?

    • @SumansAcademy
      @SumansAcademy  10 месяцев назад

      Watch this video you will get your answer.
      ruclips.net/video/W9sbA1a2-Ag/видео.htmlsi=SRTaiG60KCiLNIb5

  • @Marinho2371
    @Marinho2371 Месяц назад

    Pleasy, What version node are you use ?

    • @SumansAcademy
      @SumansAcademy  Месяц назад

      Facings any issues with json server deployment watch this ruclips.net/video/W9sbA1a2-Ag/видео.htmlsi=yuf0ptERBGODpG51

  • @IncognitoMortal-wj3yn
    @IncognitoMortal-wj3yn 5 месяцев назад

    It is throwing me this error after I followed every step : Error: Cannot find module 'json-server'

    • @SumansAcademy
      @SumansAcademy  5 месяцев назад

      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

    • @SumansAcademy
      @SumansAcademy  5 месяцев назад

      Watch this video here it is very easy to deploy json-server. ruclips.net/video/W9sbA1a2-Ag/видео.htmlsi=a3qGgxucSbOqTA7P

    • @ayushiijain
      @ayushiijain 4 месяца назад

      yes same

  • @amitbhandari3149
    @amitbhandari3149 Год назад +1

    In which unit are u in?

  • @tejaveera-dv2gh
    @tejaveera-dv2gh 2 месяца назад +1

    throw err;
    ^
    Error: Cannot find module 'json-server'
    Require stack:
    - /opt/render/project/src/index.js
    this is coming

    • @SumansAcademy
      @SumansAcademy  2 месяца назад

      please do `npm i json-server`

    • @tejaveera-dv2gh
      @tejaveera-dv2gh 2 месяца назад

      i do this but error is coming

    • @SumansAcademy
      @SumansAcademy  2 месяца назад

      Check whether you have imported it correct in index.js

    • @SumansAcademy
      @SumansAcademy  2 месяца назад

      Use this method instead it is very easy. ruclips.net/video/W9sbA1a2-Ag/видео.htmlsi=WL70oJ4PXQw7G4z5

  • @talatnaeem5135
    @talatnaeem5135 28 дней назад

    Hi, render is not free anymore?

    • @SumansAcademy
      @SumansAcademy  28 дней назад +1

      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.

  • @apnifamily-vy8my
    @apnifamily-vy8my 6 месяцев назад

    How to Upload Mern Stack website??

    • @SumansAcademy
      @SumansAcademy  6 месяцев назад +1

      Wait today I will create a video for that.

    • @apnifamily-vy8my
      @apnifamily-vy8my 6 месяцев назад

      @@SumansAcademy okay. Free Upload krne ka btayiyega. With data base working

    • @SumansAcademy
      @SumansAcademy  6 месяцев назад

      Ha sure

    • @SumansAcademy
      @SumansAcademy  6 месяцев назад

      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 ?

  • @thirdman4920
    @thirdman4920 5 месяцев назад +2

    What's json-serve?

    • @naveendoddi7683
      @naveendoddi7683 4 месяца назад

      same dought bro... if you get ans.... pls share to me bro🙏🏻

    • @trinhphong7844
      @trinhphong7844 3 месяца назад

      @@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

    • @qassim5447
      @qassim5447 3 месяца назад

      It's tool from npm provide fake APIs to frontend developers

  • @fidenhan
    @fidenhan 11 месяцев назад +1

    Love you

  • @hossammohammed9727
    @hossammohammed9727 10 месяцев назад

    thank you