question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Serverless (Remove: sqlite, passport, etc.)

See original GitHub issue

Based 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:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

6reactions
frenzzycommented, Oct 9, 2017

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…

2reactions
frenzzycommented, Oct 20, 2017

@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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Serverless Framework Commands - AWS Lambda - Remove
The sls remove command will remove the deployed service, defined in your current working directory, from the provider. Copied. serverless remove. serverless ......
Read more >
How to connect a Node.js web app to an SQLite database
Example of how to connect a Node.js web app to an SQLite database, including application code with comments.
Read more >
Laravel Vapor. Migrating existing app to serverless. Easy or not?
We are using a storage directory to save some files, configurations. The storage directory is not available via Lambda or I'm missing something....
Read more >
sqlite-database · GitHub Topics
SqfEntity ORM for Flutter/Dart lets you build and execute SQL commands on SQLite database easily and quickly with the help of fluent methods...
Read more >
How to build an interactive serverless application with Prisma ...
This blog is about my experience building an interactive serverless application with Prisma, Remix, Netlify, and CockroachDB Serverless.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found