Skip to content

A simple virtual bookshelf to practice CRUD with SQLite and SQLAlchemy.

License

Notifications You must be signed in to change notification settings

ig0r-ferreira/virtual-bookshelf

Repository files navigation

Virtual Bookshelf

Virtual Bookshelf

A simple virtual bookshelf to practice CRUD with SQLite and SQLAlchemy.

Tools used

PythonFlaskSQLiteSQLAlchemyPytestHTML 5CSS 3Bootstrap

How to install and run

  1. Clone the project.

  2. Create an .env file in the root of the project and define the following variables:

    FLASK_APP="virtual_bookshelf"
    FLASK_SECRET_KEY="your SECRET KEY here"

    Use the following command to create a SECRET KEY: python -c 'import secrets; print(secrets.token_hex())'

  3. Open the terminal from the project folder and install by running:

    poetry install
    
  4. Initialize the database (run this command only once):

    flask init-db
    
  5. Run the app:

    flask --debug run
    

How to run the tests

Once you have installed the project, run:

task test

Author

License

This project is under license from MIT.

About

A simple virtual bookshelf to practice CRUD with SQLite and SQLAlchemy.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published