guru
guru3y ago

One question though When I modify the

One question though - When I modify the code on my localhost and run npm dev/npx, I observe that Convex updates the server-side code as well (AWS Lambda). Any plans to develop a fully-fledged local version/command line, so I can develop my application entirely on localhost and then deploy it to the Convex.dev platform as npx? The localhost:3000 is forwarding the requests to Convex.dev server side. Expected it to be on my localhost as a local binary.
3 Replies
ballingt
ballingt3y ago
This is something we've thought about, but duplicating the Convex infrastructure in a reliable, similar-enough-to-prod way on developers' machines isn't on the short term roadmap right now. @guru which parts of this would be useful to you; avoiding clobbering your Prod data/functions while developing? Developing without internet access?
guru
guruOP3y ago
Developing without internet access is not an issue, but more of cloud consumption for dev and test workloads, and developing in a local first approach.
ballingt
ballingt3y ago
For dev we suggest using a personal dev deployment, each member of a Convex project gets their own separate copy of functions and the database (still hosted on Convex servers). See the switcher on at the top right if your project dashboard. Test is interesting, for end-to-end tests currently I'd also suggest using dev deployments, or for smaller integration or unit tests mocking out the convex provider or the useQuery hooks respectively, but there's more work to do here.

Did you find this page helpful?