Dastack

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:

$
git clone https://github.com/larafale/dastack.git

Navigate to the project directory:

$
cd dastack

Install dependencies using pnpm:

$
pnpm install

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:

$
pnpm dlx prisma generate

Run database migrations:

$
pnpm dlx prisma migrate dev

Seed the database with initial data (optional):

$
pnpm db:seed

Running the Application

Start the development server with Turbopack:

$
pnpm dev

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:

$
pnpm build

To start the production server:

$
pnpm start

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.