https://github.com/anandukrishnaaa/booksapp
A simple app to add books and allow users to lend books from one user to another, made in spare time as part of a practice run.
https://github.com/anandukrishnaaa/booksapp
flask flask-sqlalchemy pipenv python python-dotenv python3 sqlalchemy
Last synced: 7 months ago
JSON representation
A simple app to add books and allow users to lend books from one user to another, made in spare time as part of a practice run.
- Host: GitHub
- URL: https://github.com/anandukrishnaaa/booksapp
- Owner: anandukrishnaaa
- Created: 2025-01-28T20:22:15.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-01-28T21:06:05.000Z (11 months ago)
- Last Synced: 2025-03-24T05:31:19.348Z (9 months ago)
- Topics: flask, flask-sqlalchemy, pipenv, python, python-dotenv, python3, sqlalchemy
- Language: HTML
- Homepage:
- Size: 728 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Book Lending App with Flask & SQLAlchemy
A scrappy Flask app that lets users borrow and lend books from fellow bookworms. It’s not polished, but it gets the job done. Built to dust off some old coding skills and fueled by caffeine, quick hackery and a little bit of magic. It's like a digital bookshelf that doesn't judge you for skipping a few features - cause it doesn't have any ¯\\_(ツ)_/¯
# Screenshots
## User authentication





## Dashboard

## Add, edit & delete a book



## Browse & search books by other users


## Request a book



## View & approve requests from other users


## View & return borrowed books

# Setup & run
Clone the repo to a folder, open the folder in terminal or command prompt and then copy-paste the following one by one; just like the good old stackoverflow days before ChatGPT blew up.
1. `python -m venv .venv`
2. `venv\Scripts\activate` (for Windows)
or
`source .venv/bin/activate` (for Linux)
3. `cd app`
4. Rename `env.example` to `.env` and change the default values for `SECRET_KEY` & `SQLALCHEMY_DATABASE`
5. `python app.py`
# References
- [Securing Your Flask Application: Hashing Passwords Tutorial](https://dev.to/goke/securing-your-flask-application-hashing-passwords-tutorial-2f0p)
- [How to Use Flask-SQLAlchemy to Interact with Databases in a Flask Application](https://www.digitalocean.com/community/tutorials/how-to-use-flask-sqlalchemy-to-interact-with-databases-in-a-flask-application)
# Dependencies
- [Flask](https://flask.palletsprojects.com/en/stable/)
- [python-dotenv](https://pypi.org/project/python-dotenv/)
- [Flask-WTF](https://flask-wtf.readthedocs.io/en/1.2.x/)
- [Flask-SQLAlchemy](https://flask-sqlalchemy.readthedocs.io/en/stable/)