An open API service indexing awesome lists of open source software.

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 창의자율과제

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


스크린샷 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
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