Serverless (Remove: sqlite, passport, etc.)
See original GitHub issueBased on branch feature/apollo
Firstly, I want to say that this project is really good and nice to work with. Thank you so much for creating it and keeping it updated.
I have been thinking that I want to have a separate project for my API endpoints. I’ve been looking at nodejs starter kit and would like to find out if I can use these projects together and create a ‘microservices’ like architecture.
I hope this suggested way of using RSK is viable and usable in production.
What I want to do is:
- Use RSK as the front-end server(no db, auth, validation etc.)
- Query data from a local network/IP-address
- Use nodejs starter kit as the API.
- Run both projects together in a Docker-compose environment
So far I’ve been able to run both projects in a Docker env and the containers can ping each other. I’m using a docker-compose file with custom defined networks, just to clarify how I’m doing that.
I have also:
- Disabled Sequelize from loading on app.listen in
server.js
- Removed Login routes in
server.js
- Removed Passport in
server.js
and the file itself. - The user models in
/data/models
I think it would be a great help to have an updated branch for people who want to use RSK but already have databases and endpoints they’d want to integrate.
An effort has already been made(#1057), I’ll reference this even though I’m not sure how much they overlap.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:6 (4 by maintainers)
Top GitHub Comments
After creating a new project with react-starter-kit as a front-end and nodejs-api-starter as a backend and configured basic stuff (start/build/deploy/test) we will remove data layer from this boilerplate. Coming soon…
@patrick-samy it is easier to develop serverless apps but SSR has its advantages. I think ASK will stick with RSK, you can swap frontend to RSB if you want. Backend part (data layer) will be removed from RSK in favor of GraphQL cloud api by default (the transition to Rest API should be simple). Also probably we will start using Relay Modern in master branch. ASK will contain basic configuration of RSK and NSK working together.