Setup
The setup process will slightly differ depending on your operating system.MacOS
MacOS
Step 1. Install Homebrew
The easiest way to install the required dependencies is to use Homebrew. Run the following command in your terminal:zsh
- PostgreSQL, our database.
- Yarn, our TypeScript package manager.
- uv, our Python package manager.
Step 2. Install required packages
PostgreSQL:zsh
zsh
zsh
Step 3. Clone the Hoagie Help repository
We use GitHub for version control.zsh
NOTE: Environment variables are not included in cloned repositories.
Step 4. Environment variables
After you have the repository on your local device, you’ll need to add the environment variables.Frontend
In thefrontend/ directory, create a hidden file named .env.local.Backend
In thebackend/ directory, create a hidden file named .env.Values
See the Slack for the values for these environment variables. Once you have access to the files, paste them in as is.There are template files for the frontend and the backend —.env.local.example and .env.example, respectively — so that you know which values the app is expecting.Step 5. Downloading dependencies
You will need to download the required dependencies before you can run the app.Frontend
In the base directory of the project,cd into the frontend/ directory and run the following command:zsh
package.json to ensure consistent package versions across environments.Backend
In the base directory of the project,cd into the backend/ directory.Then, create a virtual environment using the following command:uv
hoagie-help contained within the .venv directory.
Activate this virtual environment with the following command:venv
zsh
pyproject.toml and uv.lock to ensure consistent package versions across environments.Step 6. Running the app
You will need to run the frontend and backend applications simultaneously.Frontend
In the base directory of the project,cd into the frontend/ directory:zsh
zsh
Backend
In the base directory of the project,cd into the backend/ directory:zsh
uv
You’re all set! Happy coding. Be sure to check out the Development Workflow guide!
Windows
Windows
It is a bit of a nightmare to get the Windows environment set up.We’ve found the fastest workaround to be installing the Windows Subsystem for Linux (WSL). For more details, see this article.
Step 1. Open PowerShell or Windows Command Prompt
You must do this in administrator mode by right-clicking and selecting “Run as administrator”.Step 2. Installing WSL
Run the following command:powershell