From 9c005d820867c49b724a11ccf5b1aadb6dfb60c4 Mon Sep 17 00:00:00 2001 From: gazev Date: Fri, 15 Nov 2024 00:10:21 +0000 Subject: [PATCH] chore: update README --- README.md | 5 +++-- app/commands/commands.py | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0e83922..9272ba4 100644 --- a/README.md +++ b/README.md @@ -23,11 +23,12 @@ The HackerSchool API is an integrated database that accepts requests from the In - CRUD operations for members and projects - Members and projects photos fetch and upload -## Technologies +## Technologies & Extensions - Web App Framework - [Flask](https://github.com/pallets/flask) - Session management - [Flask-Session](https://github.com/pallets-eco/flask-session/) - ORM - [Flask-SQLAlchemy](https://github.com/pallets-eco/flask-sqlalchemy/) - CORS - [Flask-Cors](https://github.com/corydolphin/flask-cors) +- Migrations - [Flask-Migrate](https://github.com/miguelgrinberg/flask-migrate) - Database - [sqlite3](https://docs.python.org/3/library/sqlite3.html) ## Setup @@ -55,7 +56,7 @@ pip install -r requirements.txt 5. **Setup the database and create an admin user**: ```bash -flask init-db +flask db upgrade flask create-admin ``` 6. **Run the application**: diff --git a/app/commands/commands.py b/app/commands/commands.py index 8848bcf..7b37685 100644 --- a/app/commands/commands.py +++ b/app/commands/commands.py @@ -5,6 +5,7 @@ from app.extensions import db +# DEPRECATED please us use migrations def register_initialize_db_command(app: Flask): @app.cli.command('init-db') def initialize_db():