This project template is designed to help developers of all levels efficiently build web applications using modern technologies such as TypeScript, testing frameworks, and data management solutions.
$ui: 'src/lib/components/ui'
, making the codebase easier to navigate and manage.If your application uses AI-driven features, add your OpenAI API key to the .env
file.
To install project dependencies, run:
bun install
To start the Convex development environment, run:
bun x convex dev
PUBLIC_CONVEX_URL
from .env.local
to .env
.To initialize the database with sample data, run:
The sample data includes tasks for a to-do list application, useful for experimenting with querying, updating, and managing tasks.
echo '{"text": "Buy groceries", "isCompleted": true}
{"text": "Go for a swim", "isCompleted": true}
{"text": "Integrate Convex", "isCompleted": false}' > sampleData.jsonl
bun x convex import --table tasks sampleData.jsonl
Replace your existing @layer base
in your app.css
with the code copied from the ShadCN theming page:
@layer base {
/* ...copied variables... */
}
To start the development server and open the application in your browser, run:
bun dev --open
To add a new UI component using the ShadCN CLI, run:
bun x shadcn-svelte@next add
For example, you can add a card component to display grouped content, such as product details or user profiles.
This script automates the setup of your development environment.
What You'll Need to Do:
src/app.css
isn't writable, run the script with sudo
.@layer base { ... }
snippet from the ShadCN theming page when asked.How to Run:
Ensure you are in the project's root directory.
Make the script executable:
chmod +x setup.sh
Execute the script:
./setup.sh