Skip to content

Latest commit

 

History

History
56 lines (43 loc) · 918 Bytes

File metadata and controls

56 lines (43 loc) · 918 Bytes

fastapi-react-auth-app

Simple example of auth app which built on Fastapi + React.js

Demo

Installation

  • Copy repo.
git clone https://github.com/Kel0/fastapi-react-auth-app.git
  • Install requires
pip install -r ./backend/requirements.txt
  • Migrate models
cd ./backend && inv migrate
  • Install react dependencies
cd ./fronend && npm install

Start app

  • Run api
cd ./backend && uvicorn clubhouse.api:app --reload --port 5000
  • Run celery
cd ./backend && celery -A clubhouse.tasks worker -B --loglevel=info
  • Run react
cd ./frontend && npm start

Start app via Docker

  • Run api
docker-compose up -d --build

Api will run under 4150 port

  • Run react
cd ./frontend && npm start