Setting up
You can set all this up locally on your machine or on a server. The setup is the same in both cases, but you may need to adjust the URLs and ports based on your environment. There are 4 steps in the setup process:- Start the needed services.
- Initialize the database schema.
- Check if the services are working.
- Configure third-party integrations.
Start services
You will need:- Docker: to run the database, cache, and Automa containers.
- Docker network: containers must share a user-defined network (e.g.
automa).
Database
We use PostgreSQL for the database. The PostgreSQL container will store its data in a Docker volume namedautoma-postgres-data. It listens on port 5432. Make sure to replace <db-password> with a secure password of your choice.
Cache
We use Redis for the key-value store. The Redis container will store its data in a Docker volume namedautoma-redis-data. It listens on port 6379. Make sure to replace <cache-password> with a secure password of your choice.
API
We use the latest Automa API image. The API will connect to the PostgreSQL and Redis containers. It listens on port 8080. Make sure to replace<your-cookie-secret> with a secure secret for session management, and <db-password> and <cache-password> with the passwords you set earlier.
We also set the BASE_URI and CLIENT_URI environment variables to point to the URLs where the API and Console services will be accessible, respectively. We recommend using the server’s public IP address or domain name for these variables. If you are running this on your local machine, you can use localhost in place of <your-server>.
The Console service while not yet available, will be served on port 80.
If you are running this on your local machine, you’ll need to expose your
local API service to the public internet so that any integrations that use
webhooks can reach it. A tool like ngrok can create a
secure tunnel to your
localhost. You would then set the public URL provided
by the tool as the WEBHOOK_URI environment variable for the automa-api
container.Console
We use the latest Automa Console image. The Console will connect to the API container. It listens on port 80. Make sure to set theAPI_URI environment variable to the URL of the API service. We recommend using the server’s public IP address or domain name for this variable. If you are running this on your local machine, you can use localhost in place of <your-server>.
Initialize database
To set up the database schema, you need to run the following command in the API container. This will create the necessary tables and indexes in your PostgreSQL database.Check the setup
You can check if the containers are running with the following command:http://<your-server> in your browser, you should see the Automa Console interface. If you are running this on your local machine, you can use http://localhost instead.
Configuring integrations
Automa supports various third-party integrations like GitHub, Linear, and Jira. Most of these integrations require you to set up OAuth applications on the respective platforms and provide the necessary credentials to the Automa API service. You can find detailed instructions for each integration in the respective documentation pages:GitHub
Configure GitHub to allow users to provide access to their repositories, and
creating tasks from issues and pull requests.
Linear
Configure Linear to allow users to create tasks from issues.
Jira
Configure Jira to allow users to create tasks from issues.