hey -c 50 -n 2000 -m GET http://localhost:8090/
export FASTAPI_CONFIG=development
SET FASTAPI_CONFIG=development
$env:FASTAPI_CONFIG="development"
cd front/super
- 꼭 위의 환경변수 설정이 필요하다.
alembic revision --autogenerate -m "first sql"
- 최신 버전 적용
alembic upgrade head
- 한 버전 업그레이드
alembic upgrade +1
- 한 버전 rollback
alembic downgrade -1
python main_cli.py init-db
- admin 추가
python main_cli.py init-test-db
wsl -- hostname -I
- manager0001@test.com / man_0001
- manager0002@test.com / man_0001
- tester0005@test.com / test_0005
- tester0006@test.com / test_0006
https://github.com/grillazz/fastapi-sqlalchemy-asyncpg/blob/main/app/models/base.py
alembic revision --autogenerate -m "base_data sql"