GithubHelp home page GithubHelp logo

jesperorb / json-server-heroku Goto Github PK

View Code? Open in Web Editor NEW
505.0 505.0 442.0 133 KB

Deploy json-server to Heroku & Glitch & Azure :up: :free:

JavaScript 100.00%
api-rest api-server azure glitch glitch-com heroku heroku-cli hosting json-server node rest rest-api restful-api

json-server-heroku's People

Contributors

dependabot[bot] avatar jason-cooke avatar jesperorb avatar pathmapper avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

json-server-heroku's Issues

Request

How exactly do you make a request to the app though once its deployed? What would the url be since its no longer local host?

heroku

I have folder for the client where all react code and in the root I put db.json
and sure package.json in the root too
but there is no server file since I used json-server so I wonder how Heroku run server.js
in the doc of json-server it is recommended to add "start": "node server.js", to package.json but there is no server file 🤔

Unable to change routes

hi, i am unable to find any documentation on how to change routes.
Also, putting console.log messages in the nested.js, singular.js etc is not working.
also, added <>.use('path', 'to-path') also not working

Not able to set database id?

I'm not sure if this is a feature request or an issue...

I've been trying to figure out how to set the database id, which you can do in an npm script like this:

"scripts": {
    "differentId": "json-server db.json --id name"
  }

The only thing I could think of was to pass the following options in server.js:

const router = jsonServer.router('db.json', { foreignKeySuffix: 'name' });

But that did not do the trick.

Is there a way to do this?

Deploy to Netlify?

Hi @jesperorb,

Awesome work, I was able to deploy it Heroku but my question is can this be deployed to Netlify? I can't seem to get it to work.

Thanks!

Middlewares

Hello!
Cool, does this include middlewares?

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.