Code Monkey home page Code Monkey logo

Comments (3)

gr0uch avatar gr0uch commented on June 3, 2024

@taylor1791 awesome, there are so many things to be done that I can think of off the top of my head:

  • JSON API serializer is a work in progress, it should support all (or most) of the optional MAYs in the spec.
  • The database adapter needs to get started on, initially NeDB and MongoDB (since their interfaces are very similar). The adapter should no longer be concerned about the serialization format and just return unformatted objects.
  • Pagination is a must, otherwise getting collection indexes will be a nightmare.
  • New feature: query method to allow app-specific database queries.
  • Look into delegating certain tasks to other libraries, such as routing and JSON Patch. The rewrite will feature a barebones router that can be used with just the built-in http.createServer Node method.
  • Public interface should remain largely the same.

I'm working off of the rewrite branch. Anyone is welcome to fork it and send PRs.

from fortune.

ethanresnick avatar ethanresnick commented on June 3, 2024

@daliwali fwiw, i have a near complete js implementation of a json api server here. i haven't bothered with docs yet, but will do so soon and am happy to answer any questions. it might make sense for fortune to depend on this.

from fortune.

gr0uch avatar gr0uch commented on June 3, 2024

@ethanresnick I took a look at it. what parts can be delegated? looks like there is 100% overlap with what fortune does.

the goal of this rewrite is to decouple everything, from the router to db adapter to serializer, so that the core can be reused whether you are using express/koa/connect or the built-in router, mongodb/nedb/other planned db adapters, or json-api/json-hal/siren or whatever media type. core dependencies will be minimal.

from fortune.

Related Issues (20)

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.