Development Setup

Development Setup

Prerequisites

Setup

git clone git@github.com:Admyral-Security/admyral.git
 
cd admyral
 
# Install dependencies
poetry install
 
# Install githook scripts
pre-commit install

Environment Variable

cp .env.example .env
 
# activate the environment variables (Tip: use a tool, such as autoenv or autodir, for
# automatically sourcing the environment variables)
source .env

To enable the AI action and send email action, you must set an OpenAI and Resend API key in the .env file.

Temporal

Start the Temporal development server:

temporal server start-dev

API Backend

poetry run python admyral/main.py api

Workflow Worker

poetry run python admyral/main.py worker

Web

# 1. Go to the `web` directory and install the dependencies:
cd web
pnpm i
 
# 2. Start the development server:
pnpm dev

Documentation

# 1. Go to the `docs` directory and install the dependencies:
cd docs
pnpm i
 
# 2. Start the development server:
pnpm dev