laynef / RailsOnNode

Scalable opinionated Node.js Framework based on Ruby on Rails with automatic API docs, server-side React, auto-generators, and code splitting.
https://railsonnode.com/
MIT License
8 stars 1 forks source link

Question: GraphQL #2

Open Jared-Dev opened 5 years ago

Jared-Dev commented 5 years ago

Has there been any thought on GraphQL/Apollo support in a similar fashion to how there is currently redux support?

laynef commented 5 years ago

Not yet, currently I've used CLI that are the most popular for database support. These are generally free formed and making structure for an easy way to include utility methods, classes, or constants are how I like to add in that support if there are no popular CLIs currently.

With Sequelize I personally view all the keys in the models through loops and logs, I wish accessibility to those keys were easier. I like to add more support for that.

If you'd like to tackle that yourself, go for it. I think that would be a great addition. For SS React and SS Redux. I made React a templating language that also handles your javascript with server side cache to pass down props. I've done two versions of server side storage with is endpoints and creating controllers to modify the redux object.

I'd like to make these ideas more intuitive because SPAs are my least favorite and will never be as performant. Nothing is better than individual assets. There are plenty of bugs and I'm working on fixing those up constantly. Things like the service worker that is generated on server run.

I'd tackle the new support. I'm thinking of better structure for Mongo. NoSQL is a different issue than JavaScript which I dislike. We all love our JSON responses though lol. Currently this is my favorite web server for server side React and Redux and I use it daily.

If you have any other ideas just like me know and just fork the project. I'm focusing on making that code cleaner too. The strings are used for file replacements. And each file in the commands directory is '-' separated for the shortcut aliases to generate automatically. You create a new command with npm new-command $file-name