Run Methods

Please Run Docker and Local simultaneously

Docker-Environment Methods

  1. Download Docker Desktop Application
  2. Put the necessary files and directories in place
  3. Command "docker-compose up --build"
  4. Command "docker-compose run web alembic revision --autogenerate"
  5. Command "docker-compose run web alembic upgrade head"
  6. Go to "http://localhost:8000/docs"
  • Signup
    스크린샷 2024-09-20 17 45 52
  • Find post /exam methods and login with your username and password
    스크린샷 2024-09-20 17 48 44 스크린샷 2024-09-20 17 51 44
    스크린샷 2024-09-20 17 48 53
  • Execute that api
  1. If you want to show Web Application, go to "http://localhost:3000"

Local-Environment Methods

  1. Download Python v3.10
  2. Install Ollama
  3. Install Llama3.1 Model
  4. Install pip libraries from requirements
  5. 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

Top categories

Loading Svelte Themes