Giter Site home page Giter Site logo

fuse-mongodb-demo's Introduction

Running server for data

This works with fuse FetchTest demo. Note: its on Mongodb 1.3 from 2014. https://github.com/aarmand/mongodb-express-2014

Using it

  1. In terminal run $mongod
  2. then run $ node mongodb-express-2014/index.js

Fetching and Displaying Data Example

Example project to accompany the "Fetching and Displaying Data" Fuse tutorial video. This is a super basic example, and uses the JSONPlaceholder fake online REST API to grab a bunch of picture data and display them using a FuseJS Observable and data binding. All relevant code is in the MainView.ux file.

Fuse version

This example was produced with Fuse (beta) v0.8.3. It was later updated to be compatible with Fuse 0.20 and onwards.

Branches

The "finished product" is on the master branch, and the template I started with in the video is on the starting-template branch.

License

This code is licensed under the BSD2 license (see LICENSE).

Places Implentation Notes

My places server is not throwing error codes for non existent paths. Remember that it dynamically generates paths based on the inputs. So in theory seems it will always find a path and just return the results there. If there is nothing there, it will return an empty object or array. I need to fix this. But in the meantime, the status error in the fusetools fetch example re: status !== wont through because we dont have one set on the error.

Looks like server is sending 400 status but Fuse not receiving. Why? Debug send to make sure its sending.

Figured out that response is being sent but something is going on with the response code. When we get rid of the response code check, results get rendered.

Built a server for db routing. Start server before running fuse

fuse-mongodb-demo's People

Contributors

aarmand avatar idkjs avatar

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.