Skip to main content

Running Without Docker CE

If you prefer to run the server and client directly on your machine, you will need PostgreSQL and Redis running locally.

Prerequisites

  • Python 3.11 and Poetry
  • Node.js 20+ and npm
  • PostgreSQL 15+ running locally
  • Redis 7+ running locally

Server

Install dependencies

cd server
poetry install

Configure environment

Create server/.env:

DATABASE_URL=postgresql+asyncpg://postgres:yourpassword@localhost:5432/aiser_world_db
REDIS_URL=redis://localhost:6379
SECRET_KEY=dev-secret-key
ENCRYPTION_KEY=your-fernet-key
AISER_EDITION=community
ENVIRONMENT=development

Apply migrations

cd server
poetry run alembic -c alembic.ini upgrade ce@head

Start the server

cd server
poetry run uvicorn src.main:app --host 0.0.0.0 --port 8000 --reload

Server is available at http://localhost:8000.

Client

Install dependencies

cd client
npm install

Configure environment

Create client/.env.local:

NEXT_PUBLIC_API_URL=http://localhost:8000
NEXT_PUBLIC_EDITION=community
API_TARGET=http://localhost:8000

Start the client

cd client
npm run dev

Client is available at http://localhost:3000.