In order run Oxla in no time, you need to have Docker and PostgreSQL client installed on your local machine. To do that, you need to follow their installation guides, that you can find below:
Once you’re done with installation part, you can open your terminal and execute following command to check if you have installed your Docker instance properly:
Copy
Ask AI
docker ps
If it returns “Bad response from Docker Engine”, it means there is an issue with your Docker instance and you need to try re-installing it.
Then you need to start Oxla Docker instance and expose PostgreSQL port:
Copy
Ask AI
docker run --rm -it -p 5432:5432 public.ecr.aws/oxla/release:latest
In case of getting an error message about port 5432 being occupied, you need to adjust the above command to utilise a different port (6000 can be used here)
Once that is done, you can now effectively connect to Oxla by executing one of the following commands, depending on the port you used before:
Copy
Ask AI
psql -h localhost -U oxla oxla
Copy
Ask AI
psql -h localhost -p 6000 -U oxla oxla
If you encounter “bash: psql: command not found“ error response, this means that you have not installed PostgreSQL client properly on your machine and you need to try reinstalling it