Get Started with Dastack
This guide will help you set up and run your Dastack project quickly.
Installation
Clone the repository to your local machine:
Navigate to the project directory:
Install dependencies using pnpm:
Environment Variables
Create a .env
file in the root directory based on the example below:
DATABASE_URL='postgresql://user:password@host:port/database_name'
OPENAI_API_KEY='sk-proj-...' # Optional
Note:
You'll need to set up a PostgreSQL database. We recommend using Neon for a serverless Postgres database with a generous free tier.
Database Setup
Dastack uses Prisma ORM for database management. Run the following commands to set up your database:
Generate the Prisma client:
Run database migrations:
Seed the database with initial data (optional):
Running the Application
Start the development server with Turbopack:
This will start your application at http://localhost:3000.
Hot Reloading
The development server includes hot reloading, so changes you make to your code will be reflected immediately without needing to restart the server.
Building for Production
To create a production build of your application:
To start the production server:
Features Overview
Dastack comes with the following features out of the box:
- Next.js 15 with App Router and React 19
- TypeScript for type safety
- TailwindCSS v4 for styling
- Shadcn/ui components
- Prisma ORM for database operations
- Dark mode support with next-themes
- Form handling with react-hook-form and zod validation
- Internationalization with next-intl
- Admin CRUD pages
- Keyboard navigation
- File management system
- Calendar component
Next Steps
Now that you have your Dastack project up and running, you can:
- Explore the admin interface
- Customize the UI to match your brand
- Add your own components
- Extend the database schema
- Configure authentication for your users
Check out our other documentation sections for more detailed guides on these topics.