How to create Json-server | How to deploy json-server | How to deploy json-server on render
HTML-код
- Опубликовано: 19 окт 2024
- #JSONserver #render #deploy #backend #API #webdevelopment #cloudcomputing #webhosting #devops #tutorial #digitalmarketing #programming #webapp #mobileapp #RESTfulAPI #REST #APIdevelopment #APIintegration #webapi #JSON #javascript #nodejs #webdesign #softwareengineering #computerscience
Creating and deploying a JSON server on render.com is a great way to quickly and easily set up a back-end API for your web or mobile application. In this tutorial, we will guide you step by step through the process of setting up a JSON server on render.com and deploying it to the cloud.
To begin, we will explain what a JSON server is and how it works. We will then walk you through the steps of creating a new JSON server on render.com, configuring it, and setting up your data model using a simple JSON file. Next, we will show you how to test your JSON server to make sure it is working correctly.
Once you have your JSON server up and running, we will guide you through the process of deploying it to the cloud on render.com.
follow me on LinkedIn:- / dev-saurabh-kumar
follow me on GitHub:- github.com/dev...
thank you bro, it helped me a lot
Thanks a lot! This video was much needed
You are welcome 😉
Great Video! 🚀
Glad you liked it!
Will post request work on this ??
can we deploy react project with backend json
ya
@mernify if we share the deployed link to anyone, can they see the project ?
@mernify how can I connect to you? Can u share your insta I'd
@@Hashir_musthafa no
bro.... iam getting error => "Cannot find module 'json-server'". i have been successfully installed json-server
plz help me bro
C:\Users\Doddi Naveen\Desktop\files\cal\testingcal> npm start
> testingcal@1.0.0 start
> node index.js
node:internal/modules/cjs/loader:1145
throw err;
^
Error: Cannot find module 'json-server'
Require stack:
- C:\Users\Doddi Naveen\Desktop\files\cal\testingcal\index.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1142:15)
at Module._load (node:internal/modules/cjs/loader:983:27)
at Module.require (node:internal/modules/cjs/loader:1230:19)
at require (node:internal/modules/helpers:179:18)
at Object. (C:\Users\Doddi Naveen\Desktop\files\cal\testingcal\index.js:1:20)
at Module._compile (node:internal/modules/cjs/loader:1368:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1426:10)
at Module.load (node:internal/modules/cjs/loader:1205:32)
at Module._load (node:internal/modules/cjs/loader:1021:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:142:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\\Users\\Doddi Naveen\\Desktop\\files\\cal\\testingcal\\index.js'
]
}
Node.js v21.7.1
@@naveendoddi7683 run this command
$npm install
npm i json-server is taking too much time and finally it responde me with error any solve for this problem ?
check your network connection and run again , if it still gives you error run this
->>> npm i json-server --force
github ???
bhai iska bhi guthub chiaye tumko , ye to aise hi maze karte bna diya tha
my github: github.com/dev-Imsaurabh
Getting Error :
Could you assist :
$ json-server --watch db.json
C:\Users\purohit\AppData\Roaming
pm
ode_modules\json-server\lib\bin.js:2
import { existsSync, readFileSync, writeFileSync } from 'node:fs';
^^^^^^
SyntaxError: Unexpected token import
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:607:28)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
at Function.Module.runMain (module.js:684:10)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3
hard to say what's wrong without looking into your code but , its most probably error from library, maybe you are trying to run backend thing in frontend which requires File system (fs).