cracklesparkle ae2213b188 Reports: city autocomplete, mutation, refresh 11 months ago
backend_fastapi pd join fixed 12 months ago
frontend_reactjs Reports: city autocomplete, mutation, refresh 11 months ago
src first init 12 months ago
.gitignore crud api 12 months ago
docker-compose.yml define Docker 11 months ago
main.py General 12 months ago
readme.md Update README 11 months ago
requierements.txt General 12 months ago
test.html first init 12 months ago
test.py first init 12 months ago

readme.md

Установка библиотек для питона pip install -r requierements.txt

html с использованием vuejs
в файле /backend_fastapi/.env добавить адрес базы данных SQL_URL = "mssql+aioodbc://username:password@host/database?driver=ODBC+Driver+17+for+SQL+Server"

Инструкция по запуску фронтенда

Требуется создать .env в корне frontend_reactjs с путями до API эндпоинтов (см. в .env.example).

Docker

  1. Запустить билд контейнера:
docker compose up -d --build --no-deps client

Локально

⚠ Рекомендуется Node LTS версии ^20.15.1

В frontend_reactjs:

  1. Установить зависимости:
npm install
  1. Запуск vite в dev-режиме:
npm run dev

или в production-ready serve:

npm serve