Skip to main content

Setup your development environment

Learn how to set up your local development environment for hans.ai.

Prerequisites

Before you begin, make sure you have the following installed:
  • Node.js 22.0 or later
  • Yarn package manager
  • PostgreSQL database

Installation

1

Clone the repository

2

Install dependencies

bash yarn install
3

Set up environment variables

Create a .env.local file in the apps/web directory:
4

Set up the database

bash yarn db:migrate yarn db:seed
5

Start the development server

Your app should now be running on http://localhost:3010.

Create your first notification task

Once your development environment is set up, you can create your first notification task:

Next steps

Learn about Notifications

Understand how notification tasks work

Configure Actions

Set up email, webhook, and custom actions

API Reference

Explore the complete API documentation

Best Practices

Learn tips for effective monitoring