This guide will help you set up the development environment.
Please follow the instruction is this section to setup your development environment using Docker.
- Docker installed on your system
- Git installed on your system
- Clone the repository:
git clone https://github.com/comrade-coop/teesa-aapp.git
- Navigate to the repository root directory:
cd teesa-aapp
- Build the Docker container:
docker build --pull --rm -f "dev-setup/Dockerfile" -t teesa-aapp:latest .
- Start the container:
chmod +x dev-setup/start.sh
./dev-setup/start.sh clear
The dev-setup/start.sh
script accepts the following parameters:
- Use
./dev-setup/start.sh clear
to clean the SSH hosts entry. This should only be used after rebuilding the container. - Use
./dev-setup/start.sh
without parameters for regular container startup.
- Connect to the container:
ssh root@localhost -p 22909
Connection details:
- Host: localhost
- Port: 22909
- Username: root
- Password: p
Note: We have configured the container with persistent volumes for VSCode and Cursor extensions and settings, so you have a consistent development environment across container restarts.
Note: We have configured the container with Docker socket volume, so you can access the Docker daemon on the host machine from the container.
Note: We have configured the container with persistent volume for Ollama, so we keep the pulled models when restarting the container.
This will set up your development environment in a Docker container with all the necessary dependencies installed.
Please follow the instruction in this section to setup your development environment without using Docker.
Make sure you have the following installed:
-
Install NVM
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
-
Install direnv (optional if want to use
.envrc
to automatically set the correct node version when navigating to the repository directory)- For MacOS
brew install direnv
- For Linux/WSL2 on Windows
sudo apt-get install direnv
-
Clone the repository
git clone https://github.com/comrade-coop/teesa-aapp.git
-
Navigate to the repository root directory
cd teesa-aapp
-
Install Node based on the
.nvmrc
filenvm install
-
Install Pnpm
npm install -g pnpm
-
Allow direnv (if you installed direnv in 4.)
direnv allow