Comments (8)
Glitch doesn't provide a DBMS running for you, but you could use SQLite since the file system is persistent and writable. 🎏
from realworld.
The RealWorld NodeJS app (repo) is fairly tightly coupled with MongoDB/mongoose. Hence MongoDB is pretty much a hard requirement. Fortunately, mLab quickly gives you a small hosted MongoDB with 0.5GB (See their Sandbox Plan).
Thus, Glitch+mLab is basically the lowest-friction in-browser way to start hacking away at an already working copy of the repo which is great for learning purposes!
If Glitch can consider offering something similar (lightweight MongoDB instance working out of the box with every new Glitch), I am sure other it would be useful to other users as well!
from realworld.
in that case, mlab is definetely my recommendation. I use glitch+mlab myself for some personal projects.
The reason glitch currently doesn't have a real db is basically because doing it right is a lot of work. (there's a reason mlab is a whole company). More details: https://support.glitch.com/t/deprecating-dynamodb-and-datastore-js-support/611
The downside of this approach of course is that the minimum first step new users will have to do is sign up for an mlab account and plug in their api/connection keys into .env though :(
We have a new feature where remix links can pre-populate the env field for a project using a scheme like https://glitch.com/edit/#!/remix/<project-name>?<var1>=<value1>&<var2=value2>...
. A possible route we can go longer term is to partner with mlab to dynamically generate these values and create a new account for a new user, but we're still not set on that yet. In the meantime, you could use this link format to set up a dummy mlab account connection shared with all remixes, that way a new user could instantly see the app working and Then go sign up for mlab once they've been convinced of the value.
from realworld.
^ that's an awesome feature — lets totally get something like that set up for our node codebase(s)! We're also working on a way to live demo the frontend codebases as well, but that's due out in ~3-4 weeks :)
PS - @pketh I'm sure ya'll have thought of this already, but having integration partners (similar to how Heroku does it) would be a killer feature for glitch 💪
from realworld.
yup heroku-style partnerships is definitely something we'd be interested in doing more of, the pre-populated env field is a first step in that direction.
from realworld.
I suppose to close this thread, perhaps this Glitch link can be added somewhere in the README as one way to quick start hacking on the NodeJS backend:
https://glitch.com/edit/#!/realworld
from realworld.
This is 💯💯💯! We should totally have a link to this in the Node repo's readme. Would also def love to collab with Fog Creek in any way :)
Does Glitch support any databases out of the box? Or do you have to provide your own every time? i.e. if they support MySQL or something, maybe we could make a port of the Mongo version that could run natively on Glitch
from realworld.
Also, we could create a sequelize version of the Node codebase so that it's literally one click to get up and running w/ the SQLite version on Glitch. A few folks have asked for Postgres support too, so this would be a nice 2-for-1 deal.
from realworld.
Related Issues (20)
- [SWAGGER] register and login response schema issue HOT 1
- [Bug]: Line breaks not showing correctly HOT 1
- [Bug]: Immediately signed out after logging in HOT 3
- [Backend] Remove Response Envelopes HOT 5
- [Bug]: When try to build HOT 5
- User registration success status code is 200, but docs/swagger show 201 HOT 1
- [Bug]: server ERROR 500 HOT 2
- [Bug]: CORS Error HOT 9
- [Feature Request]: offline functionality HOT 2
- [Bug]: Demo server status is 503 HOT 1
- [Feature Request]: Vuetify in Realworld example HOT 1
- [Bug]: Continuous modification of user information results in an error HOT 4
- Try this HOT 1
- [Bug]: demo APIs down? HOT 2
- [Bug] initialData.data from route loader is always undefined HOT 1
- API server doesn't work HOT 1
- [Bug]: Heroku Deployment failed
- [Bug]: API doesn't work HOT 4
- [Bug]:CORS Issue HOT 1
- [Bug]: Demo backend is down HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from realworld.