The Open Source AI Company
Email us if you want a new paid backend feature [email protected]
Install homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
For Unix/Linux OS you might go to the official Terraform site and download bin-file with software.
Install docker
Download here https://www.docker.com/products/docker-desktop
Follow the instructions to install it and start docker desktop
If on ubuntu install docker and start the docker daemon like so
sudo apt update
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
apt-cache policy docker-ce
sudo apt install docker-ce
sudo apt-get install docker-compose-plugin
Install Postman
Download here https://www.postman.com/downloads/
Follow the instructions to install it
Install terraform
brew tap hashicorp/tap
brew install hashicorp/tap/terraform
This was my version of terraform and my providers
chase@Chases-MacBook-Pro backend % terraform --version
Terraform v0.14.9
Install aws cli
brew install awscli
Install ansible
brew install ansible
Install postgres
brew install postgres
Install python annd packages for testing the API
brew install python3
pip3 install requests
pip3 install coolname
Setup a GPT-3 OpenAI access account and use the key found here https://beta.openai.com/docs/developer-quickstart/your-api-keys as <your OpenAI API key>
Setup a replicate alpha access account and use the key found here replicate.com as <your Replicate API key>
Add this to your .bashrc on a mac or ubuntu
alias humanishbackend='docker compose down --volumes && docker compose build --no-cache && docker compose up'
Then run this command for them to take effect
source ~/.bash_aliases
To start the app locally
Run this only once for loading environment variables
echo 'POSTGRESQL_USER_NAME=postgres
POSTGRESQL_PASSWORD=magical_password
POSTGRESQL_HOST=backend-database-1
REPLICATE_API_TOKEN=<insert token from admin>
OPENAI_API_KEY=<your OpenAI API key>' > .env
humanishbackend
Now you are ready to run the application
humanishbackend
Now you can reach out via postman and start building your frontend application