Create new convex project programmatically
We're offering a service that automatically sets up a convex project with clerk auth built in (ie like a boilerplate generator that runs and deploys out of the box for you).
We manage all hosting for customers as well.
Everything must be done automatically though.
So how do you go about creating a new convex project, setting its environmental variables, setting up a new clerk project programmatically and linking it, and deploying it to vercel all programmatically.
How do I go about doing this?
This is all being done on a github repo and running commands upon deployment through vercel (so nothing ever happens locally). Essentially, our own convex server is creating the github repo, copying in a boilerplate project, and now, we need it to correctly configure a new convex project for each of our users. How is a way that this can be done at scale?
20 Replies
That’s the magic that makes the Convex Cloud function, and I’d say are the trade secrets of the team…
Well we are trying to use convex for our clients. We want to be able to automatically create convex teams / projects for them, not having to manually pass through the UI itself.
This includes everything to do with the deploy process.
Not trying to get any trade secrets, just trying to get more people to use convex, but do it automatically.
An important part is that we cannot get the deployment key without going through the physical dashboard.
Beyond the deploy how would the UX look like for them without the dashboard?
We can provide them access through the team?
Not sure—I haven’t touched the open source version yet, so I was asking you.
we're still hosting on convex, not ourselves
Oh okay I read differently when you said you will manage all hosting.
we manage hosting of the front end
so we automatically deploy the front end for them
so we dont want to make it manual so that we can scale
but its being hard
cuz you have to do things through the dashboard
Ahhhb gotcha. Awesome initiative then and I’m sure the Convex team can help you out here!
ok perfect!
waiting to hear from them
we're basically creating AI generated convex nextjs applications
Excited to see this service myself if you plan on sharing it
Awwwwwsome
with automatic commit to repo and deploy to cloud
so you can get a prod up and running in minutes with what you want
I’m in
If you’ll have me
gladly
sign up here, our sales may reach out to you after: https://vly.ai/
vly.ai - Turn a prompt into production-ready AI-generated saas applications
vly.ai - Turn a prompt into production-ready AI-generated saas appl...
Turn a prompt into production-ready AI-generated saas applications
for like an interview
Haha I’m already on your waitlist
oh sick!
then you might be getting an email soon
Sounds good looking forward!
@vector email us
support@convex.dev
we might be able to get you more info.