Giter Site home page Giter Site logo

demo's People

Contributors

typicode 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

demo's Issues

how to save new data to db

you have mentioned like we can post new data how to do it if i try to post new data it is not saving into db

How do you delete

Hi,
I try deleting my JSON file using Axios delete and it is not working I can post and get but deleting gives me a Hard time any body care to help? here is my post request.

axios.delete(`http://localhost:3000/items/demo/posts`, {
})

login issue

login error not showing anything help required

throws error when "id":1 exists in post request body

found some minor cases. though these issues can be ignored by changing my code but still it'll be great if you look into these. specially 'case 2'

  • case 1: post request with body {"id":1,"name":"raihan"} throws below mentioned error! of
    course my id shouldn't be 1 but throwing error from server isn't convenient either.

  • case 2: post request with body {"id":"0","name":"raihan"} returns id as it is, "0". i think it
    should return new random id even if my id is string type.

  • case 3: post request with body {"id":0,"name":"raihan"} works fine though

Error: Insert failed, duplicate id
    at Function.insert (/app/node_modules/lodash-id/src/index.js:49:18)
    at /app/node_modules/lodash/lodash.js:4374:28
    at arrayReduce (/app/node_modules/lodash/lodash.js:683:21)
    at baseWrapperValue (/app/node_modules/lodash/lodash.js:4373:14)
    at LodashWrapper.wrapperValue (/app/node_modules/lodash/lodash.js:9052:14)
    at create (/app/node_modules/json-server/lib/server/router/plural.js:235:48)
    at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)
    at next (/app/node_modules/express/lib/router/route.js:137:13)
    at next (/app/node_modules/express/lib/router/route.js:131:14)
    at Route.dispatch (/app/node_modules/express/lib/router/route.js:112:3)

Don't work for me!

I made a db.json file and put a values there, but when I type the site link with my Github, and clicked db to see the data there and copy the link, it writes "Internal Server Error", and doesn't display my values! Why this is happening?

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.