https://github.com/ryongseong/dxlab
2024 동의대학교 인공지능그랜드ICT 창의자율과제
https://github.com/ryongseong/dxlab
docker fastapi postgres svelte
Last synced: 4 months ago
JSON representation
2024 동의대학교 인공지능그랜드ICT 창의자율과제
- Host: GitHub
- URL: https://github.com/ryongseong/dxlab
- Owner: ryongseong
- License: mit
- Created: 2024-08-22T05:15:58.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-08T00:41:10.000Z (about 1 year ago)
- Last Synced: 2025-08-23T19:25:57.062Z (10 months ago)
- Topics: docker, fastapi, postgres, svelte
- Language: Svelte
- Homepage:
- Size: 225 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 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
- Find post /exam methods and login with your username and password
- Execute that api
7. 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 -
│
├── 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,
│ ├── Dockerfile / Build Nginx Server Template
│ ├── .gitignore
│ ├── nginx.conf / Control Nginx Server
│ └── package.json / npm Libraries
│
├── migration
│
├── .env / Environment - API Keys,
├── 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