conradkoh
conradkoh6mo ago

Request for a command like convex dev --local

Has a feature been considered for dev mode, where the open source binary is automatically published to an npm package so that it is available for a simple 1. Addition of a package to package.json 2. Run a single command within a project to connect to a local DB (e.g. convex-local start) I encountered a scenario today where I think this might be useful. I was checking out an old branch on another computer that I was doing development on that had some changes I forgot about. However, I couldn't test out the changes in the branch because the shared dev environment already had documents that couldn't be rolled back. The result is that I couldn't start the app in that branch. I imagine this will be an increasing issue as more developers are added to projects. It seems worthwhile to provide an easy isolated dev mode for checking out old versions of the code, or preventing conflicts between developers modifying the same dev state.
2 Replies
jamwt
jamwt6mo ago
so good news! 1. we are already working on this 2. our current vision is this will be the default one day local iteration performance, especially for larger codebases, is very very hard to beat so there's a chance one day npx convex dev will default to running the (precompiled) OSS backend on your local machine, and then there is an option to instead (or additionally) spin up a cloud dev deployment
conradkoh
conradkohOP6mo ago
thanks Jamie, that’s great! it’s funny how the actually dev experience has been so good so far that I didn’t notice this till now. really like and appreciate the work that you guys are doing 👍🏼 thanks for the update!

Did you find this page helpful?