Run Methods
Please Run Docker and Local simultaneously
Docker-Environment Methods
- Download Docker Desktop Application
 
- Put the necessary files and directories in place
 
- Command "docker-compose up --build"
 
- Command "docker-compose run web alembic revision --autogenerate"
 
- Command "docker-compose run web alembic upgrade head"
 
- Go to "http://localhost:8000/docs"
 
- Signup

 
- Find post /exam methods and login with your username and password

 
- Execute that api
 
- If you want to show Web Application, go to "http://localhost:3000"
 
Local-Environment Methods
- Download Python v3.10
 
- Install Ollama
 
- Install Llama3.1 Model
 
- Install pip libraries from requirements
 
- Command "uvicorn model_server:app --host 0.0.0.0 --port 8001"
 
Directory Structure
  DXLAB / Main Directory
  ├── data / Data Directory - <Hidden>
  │
  ├── domain / Backend Directory
  │   ├── exam / Exam Directory - crud.py, schema.py, router.py
  │   ├── gemini / Gemini Directory - crud.py, schema.py, router.py
  │   ├── user / User Directory - crud.py, schema.py, router.py
  │   └── question / Question Directory - crud.py, schema.py, router.py
  │
  ├── frontend
  │   ├── src
  │   │   ├── components / For Error, Header
  │   │   ├── lib / API, Auth, Store 
  │   │   ├── routes / Pages Directory
  │   │   ├── App.svelte / Connect Routers
  │   │   └── main.js / Connect App
  │   │
  │   ├── .env / Environment - server_url, <Hidden>
  │   ├── Dockerfile / Build Nginx Server Template
  │   ├── .gitignore
  │   ├── nginx.conf / Control Nginx Server
  │   └── package.json / npm Libraries
  │
  ├── migration
  │
  ├── .env / Environment - API Keys, <Hidden>
  ├── alembic.ini / Initialize DB
  ├── database.py / Initialize DB
  ├── docker-compose.yml / Connect Docker Server - fastapi, svelte, postgresql 
  ├── Dockerfile / Build Fastapi Server Template
  ├── main.py / Control Fastapi Server
  ├── model_server.py / Control Server for Using GPU
  ├── models.py / For Setting Query Language
  └── requirements.txt / pip Libraries