Self-Hosting Aera
Follow the steps below to set up the Aera platform on your local machine.
1. Start the Docker-Compose Stack
The backend requires some middleware, including PostgreSQL, Redis, and Weaviate, which can be started together using docker-compose
.
2. Copy .env.example
to .env
.env.example
to .env
3. Generate a SECRET_KEY
in the .env
File
SECRET_KEY
in the .env
FileFor Linux:
For Mac:
4. Create Environment
Then, you can execute poetry shell
to activate the environment.
5. Install Dependencies
6. Run Migrate
Before the first launch, migrate the database to the latest version.
7. Start Backend
8. Start Aera Web Service
Follow the instructions for setting up the frontend (see below) to start the web service.
9. Set Up Your Application
Once the web service is running, visit http://localhost:3000
to begin setting up your application.
10. Handle and Debug Async Tasks
If you need to handle and debug async tasks (such as dataset importing or document indexing), start the worker service:
Testing
1. Install Dependencies for Both Backend and Test Environment
2. Run Tests Locally with Mocked System Environment Variables
Frontend Setup
Getting Started
Before starting the web frontend service, ensure the following environment is ready:
Node.js >= v22.11.x
pnpm v10.x
First, install the dependencies:
Then, configure the environment variables. Create a file named .env.local
in the current directory and copy the contents from .env.example
. Modify the values of these environment variables according to your requirements:
For production release, change this to PRODUCTION
:
The deployment edition:
The base URL of the console application, which refers to the Console base URL of the web service if the console domain is different from the API or web app domain:
The URL for the web app:
SENTRY configuration:
Finally, run the development server:
Visit http://localhost:3000
in your browser to see the result.
Deploy on Server
First, build the app for production:
Then, start the server:
If you want to customise the host and port:
If you want to customise the number of instances launched by PM2, you can configure PM2_INSTANCES
in the docker-compose.yaml
or Dockerfile
.
Last updated