-
Navigate to the
clientdirectory:cd client -
Install dependencies using
pnpm:pnpm install
-
The authentication service uses the dotenv-java library to automatically load environment variables from your
.envfile. -
Ensure you have a
.envfile in the root of your project with the following content:JWT_SECRET=<your_jwt_secret>
You can orient yourself by looking at how the
.env.examplefile looks like in the project root. -
The
application.propertiesfile inserver/authentication-service/src/main/resources/uses a placeholder to read the secret:jwt.secret=${JWT_SECRET} -
You do not need to manually export environment variables. Simply run the authentication service as usual (e.g.,
./mvnw spring-boot:run), and the secret will be loaded automatically.Note: The JWT secret must be in
.envand available to the authentication service for authentication to work correctly.
Make sure to create a .env file from the .env.example and add your API Key.
-
Navigate to the
genaidirectory:cd genai -
Install Dependencies:
python3 -m venv .venv source .venv/bin/activate pip3 install -r requirements.txt
You can start the database using Docker Compose:
docker compose up postgres-dbFrom the project root, run:
cd client
pnpm devOpen http://localhost:3000 with your browser to see the result.
To start the microservices individually, repeat in their respective directories (e.g., authentication-service, coursemgmt-service, upload-service):
cd authentication-service
./mvnw spring-boot:run
cd coursemgmt-service
./mvnw spring-boot:run
cd upload-service
./mvnw spring-boot:run- Using uvicorn directly:
cd genai uvicorn main:app --host 0.0.0.0 --port 8084 - Using python3:
cd genai python3 main.py - Using Docker:
cd genai docker build -t llm . docker run --env-file .env -p 8084:8084 llm