Nuxt Quickstart
Get a SpacetimeDB Nuxt app running in under 5 minutes.
Prerequisites
- Node.js 18+ installed
- SpacetimeDB CLI installed
Create your project
Run the spacetime dev command to create a new project with a SpacetimeDB module and Nuxt client.
This will start the local SpacetimeDB server, publish your module, generate TypeScript bindings, and start the Nuxt development server.
spacetime dev --template nuxt-tsOpen your app
Navigate to http://localhost:5173 to see your app running.
The template includes a basic Nuxt app connected to SpacetimeDB.
Explore the project structure
Your project contains both server and client code.
Edit spacetimedb/src/index.ts to add tables and reducers. Edit components/AppContent.vue to build your UI, and app.vue to configure the SpacetimeDB connection.
my-spacetime-app/
├── spacetimedb/ # Your SpacetimeDB module