๐ Hey there!
In this tutorial we'll walk through creating a full-stack app with InstantDB. Within 5-10 minutes you'll have an app that runs on your computer, and if you like, can be deployed into the wild!
As a first step let's make sure you're logged in. Run the following command in the terminal with your favorite package manager.
This will open up a browser window where you can log in to your Instant account or sign up if you don't have one yet.
Now that you're authenticated any app you make will persist unless you delete the data later โ woohoo!
As a next step we'll use create-instant-app, our CLI tool, which makes it super easy to get started with a new Instant project. Run the following in your terminal.
Go through the prompts to select your framework and llm. Once the app is generated change into the new directory and go on to step 3!
Woohoo! Now that we've got everything set up, we're ready to build an app! Fire up your editor (cursor, windsurf, zed, etc.) or your CLI tool (claude, gemini, etc) and type up a prompt. Hit enter and watch the magic happen!
Here are some example prompts for inspiration
Run into an issue? Here are solutions to common problems you might encounter:
Once you've got a working app we can get it live by deploying to Vercel! Before we deploy, let's verify there are no build errors. In the terminal run:
If there are build errors, paste them into your agent to get them fixed up. Make sure your app still works as expected after your agent gets the build to pass:
If all looks well let's kick off a deploy!
Your app should be live after vercel finishes deploying! If you see any error about a missing app-id it means we need to add it to the vercel environment. Run this command
and it will prompt you to paste your app id. You can find the value in your .env file. Redeploy and you should have a fully-working app.
Huzzah! If you're curious, you can go to your Instant dashboard and see your data in the Explorer tab as you interact with your app.
We'd love to see what you built! Tweet us @instant_db and we'll amplify your awesome creations to the community.
๐งกShare on Twitter