2025-04-13 11:57:16 +02:00
# julius_baer_onboarding
2025-04-13 10:20:16 +02:00
2025-04-13 11:57:16 +02:00
# Project Setup Guide (Ubuntu Linux)
2025-04-13 10:20:16 +02:00
2025-04-13 11:57:16 +02:00
This project consists of a Python backend and a JavaScript frontend. The following instructions describe how to set up the development environment manually on Ubuntu.
2025-04-13 10:20:16 +02:00
2025-04-13 11:57:16 +02:00
---
2025-04-13 10:20:16 +02:00
2025-04-13 11:57:16 +02:00
## 🔧 Installing prerequisites
2025-04-13 10:20:16 +02:00
2025-04-13 11:57:16 +02:00
### 1. Install Python 3.12 and Required Tools
2025-04-13 10:20:16 +02:00
2025-04-13 11:57:16 +02:00
#### For Ubuntu 22.04+
2025-04-13 11:42:38 +02:00
2025-04-13 11:57:16 +02:00
```bash
sudo apt update
sudo apt install python3.12 python3.12-venv python3.12-dev
```
2025-04-13 11:42:38 +02:00
2025-04-13 11:57:16 +02:00
#### For Ubuntu 20.04
2025-04-13 10:20:16 +02:00
```bash
2025-04-13 11:57:16 +02:00
sudo add-apt-repository ppa:deadsnakes/ppa
2025-04-13 10:20:16 +02:00
sudo apt update
2025-04-13 11:57:16 +02:00
sudo apt install python3.12 python3.12-venv python3.12-dev
2025-04-13 10:20:16 +02:00
```
### 2. Install Tesseract OCR
```bash
sudo apt install tesseract-ocr
```
### 3. Install Node.js and npm
2025-04-13 11:57:16 +02:00
See https://nodejs.org/en/download : Install v20.19.0 or higher
---
2025-04-13 10:20:16 +02:00
## 🚀 Project Setup
1. **Clone the repository**
```bash
git clone https://github.com/NoeBerdoz/julius_baer_onboarding
cd julius_baer_onboarding
```
2. **Set up the Python virtual environment**
```bash
python3.12 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
```
3. **Install frontend dependencies**
```bash
cd frontend
npm install
cd ..
```
2025-04-13 11:57:16 +02:00
4. **Setup environment variables**
2025-04-13 10:20:16 +02:00
2025-04-13 11:57:16 +02:00
```bash
cp .env.example .env
2025-04-13 10:36:26 +02:00
```
2025-04-13 11:57:16 +02:00
And fill in your values and API keys in the newly created `.env` file.
---
2025-04-13 10:20:16 +02:00
## 🧪 Development Workflow
2025-04-13 11:57:16 +02:00
- Activate the Python virtual environment:
2025-04-13 10:20:16 +02:00
```bash
source .venv/bin/activate
2025-04-13 11:57:16 +02:00
```
- To run the backend:
```bash
2025-04-13 10:36:26 +02:00
python app.py
```
2025-04-13 11:57:16 +02:00
- To run the frontend:
2025-04-13 10:20:16 +02:00
```bash
cd frontend
npm run dev
```
2025-04-13 11:57:16 +02:00
Then open your browser to http://localhost:5174/ (or the address displayed after running `npm run dev` )