Skip to main content
This guide will help you set up and run Dzaleka Online Services locally on your machine.

Prerequisites

Before you begin, ensure you have the following installed:
  • Node.js: Version 20 or higher (as specified in netlify.toml:34)
  • npm, yarn, or pnpm: Package manager of your choice
  • Git: For version control
The project uses Node.js 20 in production. We recommend matching this version locally to avoid compatibility issues.

Installation

Available Scripts

The following npm scripts are available in package.json:5-12:

Building for Production

Project Structure

Understanding the project structure will help you navigate the codebase:

Next Steps

Environment Variables

Configure required environment variables for your setup

Configuration

Learn about Astro and Tailwind configuration options

Deploy to Netlify

Deploy your site to Netlify in minutes

Custom Domain

Set up a custom domain for your deployment

Troubleshooting

Port already in use

If port 4321 is already in use, you can specify a different port:

Build errors

If you encounter build errors, try:
  1. Delete node_modules/ and package-lock.json
  2. Clear Astro cache: rm -rf .astro
  3. Reinstall dependencies: npm install
  4. Rebuild: npm run build

Node version issues

Ensure you’re using Node.js 20 or higher:
Consider using nvm to manage Node.js versions: