Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/emmo00/book-store
A book store app with flask
https://github.com/emmo00/book-store
admin bookstore ecommerce flask python sqlalchemy
Last synced: 15 days ago
JSON representation
A book store app with flask
- Host: GitHub
- URL: https://github.com/emmo00/book-store
- Owner: Emmo00
- Created: 2024-01-06T12:39:46.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-26T20:51:44.000Z (almost 1 year ago)
- Last Synced: 2024-04-15T01:18:08.000Z (10 months ago)
- Topics: admin, bookstore, ecommerce, flask, python, sqlalchemy
- Language: Python
- Homepage:
- Size: 293 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Book-store app
A book store app with flask
## Features
### Admin
- Add, Edit books
- Add, Edit pickup locations
- View Orders (Pending and other)
- View Shopping list (a list of all books that are ordered, for admin to buy them in bulk from wholesaler/retailer)### Client
- View Books
- Add books to cart
- View items in cart
- Place an order and pay with Flutterwave checkout
- View previously make orders## Setup
1. clone the project and `cd` into the directory.
1. Create a virtual env
```bash
python -m venv venv
```2. Run the following command to install dependencies.
```bash
python -m pip install -r requirements.txt
```3. Run the following command to setup `pre-commit` and `black` for code formatting.
```bash
pre-commit install
```4. Set env variables
### Environment variables
```bash
SECRET_KEY=
DATABASE_URI=# location to save uploaded files
UPLOADS_FOLDER=# admin username and password
ADMIN_USER=
ADMIN_PASS=# flutterwave API keys
FLW_PUBLIC_KEY=
FLW_SECRET_KEY=# app name and url
APP_NAME=
APP_URL=
```5. Start application
```bash
flask run -h 0.0.0.0
```