fastapi-chat
Real-time chat with FastAPI, Websockets and SQLAlchemy2
파일 탐색기
최종 버전 다운로드 (.zip)- ci.yml
- 0001_create_models.py
- 0002_create_admin_user_model.py
- 0003_increase_user_image_text_length.py
- 0004_add_settings_to_user_model.py
- 0005_add_type_and_file_fields_to_message.py
- 0006_create_indexes_increase_user_image_char_.py
- env.py
- README
- script.py.mako
- admin.py
- authentication_backend.py
- models.py
- services.py
- router.py
- schemas.py
- services.py
- utils.py
- router.py
- schemas.py
- services.py
- router.py
- schemas.py
- services.py
- pubsub_manager.py
- websocket_manager.py
- router.py
- schemas.py
- services.py
- router.py
- schemas.py
- services.py
- .gitkeep
- exceptions.py
- handlers.py
- rate_limiter.py
- router.py
- schemas.py
- services.py
- config.py
- database.py
- dependencies.py
- main.py
- models.py
- routers.py
- utils.py
- index.html
- test_authentication_router.py
- test_create_chat.py
- test_get_chat_messages.py
- test_get_older_messages.py
- test_get_user_chats.py
- test_direct_chat_exists.py
- test_contact_router.py
- test_registration_router.py
- test_settings_router.py
- __init__.py
- conftest.py
- .dockerignore
- .gitignore
- .pre-commit-config.yaml
- alembic.ini
- docker-compose.yml
- Dockerfile
- LICENSE
- Makefile
- poetry.lock
- Procfile
- pyproject.toml
- README.md
# 설치 가이드
1. 코드 내려받기
git clone https://github.com/notarious2/fastapi-chat
깃허브에서 프로젝트 코드 전체를 내 컴퓨터로 내려받습니다.
cd fastapi-chat
방금 내려받은 프로젝트 폴더 안으로 이동합니다.
2. Docker
쉬움 추천사전 준비물
- Git GitHub에서 프로젝트 코드를 내려받으려면 필요합니다.
- Docker Desktop 컨테이너를 빌드하고 실행하려면 필요합니다. 설치 후 실행해서 백그라운드에 켜두세요.
docker compose up -d --build
정의된 모든 컨테이너(서버, DB 등)를 한 번에 빌드하고 백그라운드에서 실행합니다.
터미널에 docker compose ps 를 입력해 컨테이너들이 Up 상태인지 확인하세요. README에 포트 번호가 적혀있다면 브라우저에서 http://localhost:포트번호 로 접속해보세요.
3. Python
쉬움사전 준비물
pip install .
PyPI에 배포된 패키지를 바로 설치합니다. 소스 클론이 필요 없습니다.
python <실행할 파일명>.py # README에서 정확한 실행 파일명을 확인하세요
파이썬 스크립트(또는 모듈)를 실행합니다.
에러 메시지 없이 실행되고 터미널에 안내 문구가 출력되면 정상입니다.
4. Make
보통사전 준비물
- Git GitHub에서 프로젝트 코드를 내려받으려면 필요합니다.
- Make Linux/macOS는 보통 기본 설치되어 있습니다. Windows는 별도 설치(예: MSYS2, WSL)가 필요합니다.
make
생성된 빌드 설정을 바탕으로 실제 컴파일을 진행해 실행 파일을 만듭니다.
에러 없이 끝나면 성공입니다. 생성된 실행 파일을 직접 실행해보세요.
// repository documentation
Was this content helpful?
(0 ratings)
