BookLibrary
Simple Book library application written on flask with SQLite database.
Features
- user login, logout, register, change password, update about-me information
- user borrow/return books, write/delete comments
- administrator add/delete book, update book information
- administrator delete comments
Screen Shot
Installation
git clone https://github.com/magic-akari/BookLibrary.git
cd BookLibrary
python3 -m venv venv
source ./venv/bin/activate
pip install -r requirements.txt
python3 ./run.py
Press CTRL+C to terminate the server.
use deactive
to quit the virtual environment.
Python 3 is recommend, meanwhile this project is compatible with python 2.
Run with Docker
You can run this project with docker by running the following commands:
docker build -t booklibrary:latest .
docker run -ti -v `pwd`:/app -p 4000:4000 booklibrary:latest
By adding the -v
above, you can make changes in the local files and they will
be reflected inside the docker container. If you want to run it in
"production" mode, skip the above -v
option.
Dependencies
- Flask
- SQLAlchemy
- Flask-SQLAlchemy
- Flask-Login
- Flask-WTF
- Bootstrap
- Flask-Bootstrap
- Markdown
- Flask-PageDown
- Flask-Uploads
- Bootstrap File Input
LICENSE
The MIT License (MIT)
Copyright (c) 2016 阿卡琳
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.