Get Started
Set up your development environment and start building with Datyze
Get Started
This guide will help you set up Datyze for local development.
Prerequisites
Before you begin, ensure you have the following installed:
- Node.js 18.17 or later
- pnpm 8.0 or later
- PostgreSQL 14 or later (or use Docker)
- Git
Installation
1. Clone the Repository
2. Install Dependencies
Datyze uses pnpm as its package manager:
3. Set Up Environment Variables
Copy the example environment file:
Edit .env with your configuration:
Generate AUTH_SECRET using:
openssl rand -base64 324. Set Up the Database
Start PostgreSQL (using Docker):
Push the database schema:
5. Start Development Server
Your application will be available at http://localhost:3000.
Development Commands
| Command | Description |
|---|---|
pnpm dev | Start development server |
pnpm build | Build for production |
pnpm start | Start production server |
pnpm lint | Run ESLint |
pnpm lint:fix | Fix linting issues |
pnpm format | Format code with Prettier |
pnpm type-check | Run TypeScript checks |
pnpm test | Run tests |
Database Commands
| Command | Description |
|---|---|
pnpm db:push | Push schema to database |
pnpm db:generate | Generate migrations |
pnpm db:migrate | Run migrations |
pnpm db:studio | Open Drizzle Studio |
Project Structure
After installation, your project structure will look like this:
Next Steps
- Architecture - Understand the codebase structure
- Authentication - Set up OAuth providers
- Database - Configure your database schema