Quickstart¶
While developing, it's often helpful to run development servers that host different parts of the application, or provide specific views, such as the UI components or documentation.
These development servers include:
- FastAPI Backend Server: Hosts the Python API.
- Next.js Frontend Server: Builds and serves the user interface.
- Storybook Server: Allows you to browse and visually inspect all UI components.
- MkDocs Server: Renders and serves the project documentation.
This guide will show you how to start these servers, allowing you to see how your code changes are reflected in the app in real time.
This guide provides two ways to set up your Whombat development environment:
Manual Setup: Ideal if you prefer direct control over your development environment and are comfortable managing dependencies.
Docker Compose: Streamlines setup and provides a consistent environment.
Option 1: Manual Setup¶
Pre-requisites¶
Before setting up your Whombat development environment, ensure you have the following tools installed:
-
Python 3.12: We developed Whombat using this version, but any version greater or equal to 3.11 should be compatible. Download Python 3.12 here.
-
uv: UV is a Python package dependency manager that we use to manage dependencies for the Python part of Whombat. Download uv uv.
-
Node.js: We use Node.js to develop and bundle the final JavaScript code for the Whombat frontend. Download the latest version here.
Set Up¶
After confirming that you have all the prerequisites ready, follow these steps to set up a development environment on your machine.
- Clone the repository:
- Navigate to the backend directory and install dependencies:
- Move to the frontend directory and install all dependencies:
These instructions ensure you have the necessary tools and dependencies to kickstart Whombat development on your local machine.
Running the Development Servers¶
- Backend: To initiate the backend server, run the following command from the project's root directory:
- Frontend: To start the frontend development server, run:
Once both servers are running, navigate to http://localhost:3000 in your web browser to access the Whombat development environment.
- Storybook:
Access Storybook at http://localhost:6006.
- Documentation Server:
View the documentation at http://localhost:8000.
Option 2: Docker Compose¶
Pre-requisites¶
- Docker and Docker Compose: Install them by following the instructions for your operating system on the official Docker website.
Set Up¶
Once you have Docker Compose installed, follow these steps:
- Clone the Repository
- Navigate to the Project Directory
Run Services¶
- Backend and Frontend:
Access the Whombat development environment at http://localhost:3000
- Storybook:
Access Storybook at http://localhost:6006.
- Documentation Server:
View the documentation at http://localhost:8000.
- All Services: