Skip to content

Commit 964a092

Browse files
Merge pull request #4 from Evolutionary-Algorithms-On-Click/release_2
Complete examples and add FAQs
2 parents bb89382 + 6f102df commit 964a092

30 files changed

+739
-93
lines changed

.vitepress/config.mjs

Lines changed: 29 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -107,48 +107,61 @@ export default defineConfig({
107107
},
108108
nav: [
109109
{ text: "Home", link: "/" },
110-
{ text: "Get Started", link: "/get-started" },
110+
{ text: "Get Started", link: "/introduction" },
111111
{
112112
text: "Examples",
113113
items: [
114-
{ text: "EA Run", link: "/ea-run" },
115-
{ text: "GP Run", link: "/gp-run" },
116-
{ text: "PSO Run", link: "/pso-run" },
117-
{ text: "DE Run", link: "/de-run" },
118-
{ text: "Optimize ML Run", link: "/ml-run" },
114+
{ text: "EA Run", link: "/user-guide/ea-run" },
115+
{ text: "GP Run", link: "/user-guide/gp-run" },
116+
{ text: "PSO Run", link: "/user-guide/pso-run" },
117+
{ text: "DE Run", link: "/user-guide/de-run" },
118+
{ text: "Optimize ML Run", link: "/user-guide/ml-run" },
119119
],
120120
},
121121
{ text: "Team", link: "/team" },
122122
],
123123

124124
sidebar: [
125125
{
126-
text: "Getting Started",
126+
text: "Get Started",
127+
collapsed: false,
128+
items: [{ text: "Introduction", link: "/introduction" }],
129+
},
130+
{
131+
text: "Installation",
127132
collapsed: false,
128133
items: [
129-
{ text: "Setup Environment", link: "/get-started" },
130-
{ text: "Backend Setup", link: "/backend-setup" },
131-
{ text: "Frontend Setup", link: "/frontend-setup" },
134+
{ text: "Pre-requisites", link: "/install/env-setup" },
135+
{ text: "Backend Setup", link: "/install/backend-setup" },
136+
{ text: "Frontend Setup", link: "/install/frontend-setup" },
132137
],
133138
},
134139
{
135140
text: "User Guide",
136141
collapsed: false,
137142
items: [
138-
{ text: "Register and Login", link: "/auth" },
143+
{ text: "Register and Login", link: "/user-guide/auth" },
139144
{
140145
text: "Examples",
141146
collapsed: false,
142147
items: [
143-
{ text: "EA Run", link: "/ea-run" },
144-
{ text: "GP Run", link: "/gp-run" },
145-
{ text: "PSO Run", link: "/pso-run" },
146-
{ text: "DE Run", link: "/de-run" },
147-
{ text: "Optimize ML Run", link: "/ml-run" },
148+
{ text: "EA Run", link: "/user-guide/ea-run" },
149+
{ text: "GP Run", link: "/user-guide/gp-run" },
150+
{ text: "PSO Run", link: "/user-guide/pso-run" },
151+
{ text: "DE Run", link: "/user-guide/de-run" },
152+
{
153+
text: "Optimize ML Run",
154+
link: "/user-guide/ml-run",
155+
},
148156
],
149157
},
150158
],
151159
},
160+
{
161+
text: "FAQs",
162+
collapsed: false,
163+
items: [{ text: "Common Problems", link: "/FAQ" }],
164+
},
152165
{
153166
text: "Team",
154167
collapsed: false,

FAQ.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
title: Troubleshooting Common Issues
3+
description: Solutions for common problems encountered while using EvOC, such as browser cache errors and internet connectivity issues affecting microservices.
4+
---
5+
6+
# Troubleshooting Common Issues
7+
8+
Encountering problems? Here are solutions for some common issues you might face while using EvOC.
9+
10+
## Issue 1: Error Immediately After Clicking "Get Started"
11+
12+
### Symptom
13+
14+
After accessing the EvOC web application and clicking the **`Get Started`** or **`Sign Up`** button on the homepage, you immediately see an error message, potentially similar to this:
15+
16+
![Error message appearing shortly after clicking Get Started, possibly related to loading resources](https://i.imgur.com/XCiKGpB.png)
17+
18+
### Cause
19+
20+
This often happens due to stale data stored in your web browser's cache from a previous visit or version of EvOC.
21+
22+
### Solution: Hard Refresh
23+
24+
The quickest solution is usually to perform a "hard refresh" of the page, which forces the browser to discard its cache and download the latest files from the server.
25+
26+
- **On most browsers (Windows/Linux):** Press `Ctrl` + `Shift` + `R`
27+
- **On most browsers (Mac):** Press `Cmd` + `Shift` + `R` or `Cmd` + `Option` + `R`
28+
29+
Alternatively, you can try clearing your browser's cache specifically for the EvOC site through your browser's settings menu.
30+
31+
## Issue 2: Errors in Terminal Regarding Microservices (Local Install)
32+
33+
### Symptom
34+
35+
If you are running EvOC via a **local installation** (using Docker, etc.), you might see error messages appear in the terminal window where you launched the EvOC services. These errors often mention failures to connect to or fetch required microservices. The application UI might fail to load certain parts or become unresponsive. An example might look like this:
36+
37+
![Terminal output showing error messages related to fetching or connecting to microservices](https://i.imgur.com/1x4NVoa.png)
38+
39+
### Cause
40+
41+
This typically indicates that the different backend components (microservices) of your local EvOC installation cannot communicate properly, often due to network connectivity problems between your machine and the resources those services need (or sometimes between the services themselves if networking is misconfigured).
42+
43+
### Solution: Check Network & Restart
44+
45+
1. **Verify Internet Connectivity:** Ensure the machine running EvOC has a stable and active internet connection. Try accessing other websites.
46+
2. **Check Network Configuration:** If using complex local network setups or VPNs, ensure they are not blocking communication required by EvOC's services.
47+
3. **Restart EvOC Services:** Stop the running EvOC services in your terminal (usually with `Ctrl` + `C`). Wait a few seconds, and then restart them using the standard launch command (e.g., `docker compose up -d`).
48+
4. **Retry:** Access the EvOC application interface again after restarting the services.
49+
50+
::: danger Persistent Issue?
51+
If the problem continues after checking connectivity and restarting, consult the **[Local Installation Guide](./install/env-setup)** for more detailed setup verification steps or check for any specific network requirements mentioned there.
52+
:::

auth.md

Lines changed: 0 additions & 19 deletions
This file was deleted.

de-run.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

ea-run.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

gp-run.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

index.md

Lines changed: 30 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,47 @@ layout: home
33

44
hero:
55
name: "EvOC"
6-
text: "User documentation"
7-
tagline: "Documentation for the Evolutionary Algorithms On Click (EvOC) Project"
6+
text: "Run & Visualize EAs with Just a Click"
7+
tagline: A user-friendly framework (Evolve On Click) for designing, executing, and analyzing various evolutionary algorithms (EA, GP, PSO, ML Tuning) through an intuitive graphical interface. Perfect for learners, researchers, and educators – no coding required to get started!
88
image:
99
src: "/logo.png"
1010
alt: "EvOC Logo"
1111
actions:
1212
- theme: brand
1313
text: Get Started
14-
link: /get-started
14+
link: /introduction
1515
- theme: alt
16-
text: Explore
17-
link: "/ea-run"
16+
text: See Features in Action
17+
link: /user-guide/ea-run
1818

1919
features:
20-
- title: "Configure"
20+
- title: "Intuitive Configuration"
2121
icon: ⚙️
22-
details: "Configure EA parameters for GP, PSO, DE, and traditional EA algorithms with ease."
23-
link: "/ea-run"
24-
- title: "Visualize"
22+
details: "Visually configure parameters for Genetic Algorithms (GA), Genetic Programming (GP), Particle Swarm Optimization (PSO), and EA for ML Tuning via a simple GUI."
23+
link: /user-guide/ea-run
24+
25+
- title: "Powerful Visualizations"
2526
icon: 📈
26-
details: "Visualize algorithm results through graphs and logs."
27-
link: "/ea-run"
28-
- title: "Generate Code"
27+
details: "Instantly visualize algorithm progress with fitness plots, understand results with GP trees, or observe swarm behavior with PSO animations."
28+
link: /user-guide/ea-run
29+
30+
- title: "Transparent Code Generation"
2931
icon: 💻
30-
details: "Generate Python code (powered by DEAP) for your configured algorithms."
31-
link: "/ea-run"
32-
- title: "Run, Save, & Share"
32+
details: "Generate the underlying Python code (using the DEAP library) based on your GUI setup for transparency, learning, or further customization."
33+
link: /user-guide/ea-run
34+
35+
- title: "EA for ML Tuning"
36+
icon: 🧠
37+
details: "Optimize Machine Learning model features or hyperparameters using Evolutionary Algorithms. Easily connect your data via Google Drive links."
38+
link: /user-guide/ml-run
39+
40+
- title: "AI-Powered Explanations"
41+
icon:
42+
details: "Don't understand the generated code or a specific EA concept? Ask the integrated EvOC AI for a clear explanation!"
43+
link: /user-guide/ea-run
44+
45+
- title: "Execute, Save & Collaborate"
3346
icon: 🚀
34-
details: "Execute algorithms, save results, and share your findings effortlessly."
35-
link: "/ea-run"
47+
details: "Run experiments, track your execution history, download logs, and easily share your configurations and results with others."
48+
link: /user-guide/ea-run
3649
---
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
---
2+
title: Backend Setup
3+
description: Deploy the EvOC backend services locally using Docker Compose. This guide provides step-by-step instructions for setting up the backend environment.
4+
---
5+
16
# Deploying EvOC Backend Locally
27

38
This guide will help you deploy the backend services of the Evolutionary Algorithms On Click (EvOC) project locally using Docker Compose.
@@ -54,7 +59,7 @@ AUTH_GRPC_ADDRESS = host.docker.internal:5001
5459
Run all services using the Docker Compose `.yml` file. Execute this command inside the `operations` directory:
5560

5661
```sh
57-
docker-compose up -d
62+
docker compose up -d
5863
```
5964

6065
Alternatively, click the `Run All Services` button at the start of the `.yml` file (if your IDE supports it):

get-started.md renamed to install/env-setup.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
---
2+
title: Installation Setup
3+
description: Step-by-step guide to set up the environment for running EvOC locally, including Docker Desktop installation, GMail Mailer account setup, and optional VS Code installation.
4+
---
5+
16
# Setup Environment
27

38
## Docker Desktop
@@ -20,3 +25,5 @@
2025
2. Install the **Docker extension** from Microsoft to manage services inside Docker using `.yml` files.
2126

2227
![VS Code Docker Extension](https://i.imgur.com/4wMJyh6.png)
28+
29+
<!-- TODO: Docs about getting a free Gemini API key for AI Features. -->
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
---
2+
title: Frontend Setup
3+
description: Step-by-step guide to deploy the EvOC frontend locally using Next.js. This guide includes cloning the repository, installing dependencies, and running the application.
4+
---
5+
16
# Deploying EvOC Frontend Locally
27

38
The frontend is a Next.js application that communicates with the backend services. It is responsible for rendering the user interface and handling user interactions.
@@ -28,6 +33,8 @@ Create a `.env` file and paste the following configuration:
2833
NEXT_PUBLIC_BACKEND_BASE_URL=http://localhost:5002
2934
NEXT_PUBLIC_AUTH_BASE_URL=http://localhost:5000
3035
NEXT_PUBLIC_MINIO_BASE_URL=http://localhost:9000
36+
NEXT_PUBLIC_AI=false # If you need access to AI features, set this to true
37+
GOOGLE_GENERATIVE_AI_API_KEY=<YOUR_API_KEY> # If you need access to Google Generative AI features, set this to your API key
3138
```
3239

3340
![env-content](https://i.imgur.com/v4RN8cv.png)

0 commit comments

Comments
 (0)