You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
4
+
5
+
These development servers include:
6
+
7
+
-**FastAPI Backend Server**: Hosts the Python API.
8
+
-**Next.js Frontend Server**: Builds and serves the user interface.
9
+
-**Storybook Server**: Allows you to browse and visually inspect all UI components.
10
+
-**MkDocs Server**: Renders and serves the project documentation.
11
+
12
+
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.
13
+
14
+
This guide provides two ways to set up your _Whombat_ development environment:
15
+
16
+
**Manual Setup**: Ideal if you prefer direct control over your development environment and are comfortable managing dependencies.
17
+
18
+
**Docker Compose**: Streamlines setup and provides a consistent environment.
19
+
20
+
## Option 1: Manual Setup
21
+
22
+
### Pre-requisites
4
23
5
24
Before setting up your Whombat development environment, ensure you have the following tools installed:
6
25
7
-
1.**Python 3.12**: We developed Whombat using this version, but any newer version should be compatible.
26
+
1.**Python 3.12**: We developed Whombat using this version, but any version greater or equal to 3.11 should be compatible.
3. Move to the frontend directory and install all dependencies:
@@ -39,47 +58,87 @@ npm install
39
58
40
59
These instructions ensure you have the necessary tools and dependencies to kickstart Whombat development on your local machine.
41
60
42
-
## Running the Development Server
61
+
###Running the Development Servers
43
62
44
-
Once installed, you can start the backend server by navigating to the `back` directory and running:
63
+
-**Backend**: To initiate the backend server, run the following command from the project's root directory:
45
64
46
65
```bash
47
-
make serve-dev
66
+
make serve-back
48
67
```
49
68
50
-
You can also start the frontend development server by navigating to the `front` directory and running:
69
+
-**Frontend**: To start the frontend development server, run:
70
+
71
+
```bash
72
+
make serve-front
73
+
```
74
+
75
+
Once both servers are running, navigate to [http://localhost:3000](http://localhost:3000) in your web browser to access the Whombat development environment.
76
+
77
+
-**Storybook:**
78
+
79
+
```bash
80
+
make storybook
81
+
```
82
+
83
+
Access Storybook at http://localhost:6006.
84
+
85
+
-**Documentation Server:**
86
+
87
+
```bash
88
+
make dev-docs
89
+
```
90
+
91
+
View the documentation at http://localhost:8000.
92
+
93
+
## Option 2: Docker Compose
94
+
95
+
### Pre-requisites
96
+
97
+
-**Docker** and **Docker Compose**: Install them by following the instructions for your operating system on the official Docker [website](https://docs.docker.com/compose/install/).
98
+
99
+
### Set Up
100
+
101
+
Once you have Docker Compose installed, follow these steps:
0 commit comments