ShopEasy: An easy way to create and keep track of items on yur shopping lists.
The challenge of keeping track of shopping items is a need for many individuals that requires an innovative and robust solution that will allow them to remember and share the shopping lists with others
A flask based API to avail resources for creation of shopeasylists
|Method | Endpoint | Usage |
|POST| /api/v1/auth/register
| Register a user.
|POST| /api/v1/auth/login
| Login user.
|POST| /api/v1/shopeasylists/
| Create a new shopeasy list.
|GET| /api/v1/shopeasylists/
| Retrieve all the created shopeasy lists.
|GET| /api/v1/shopeasylists/<bucket_id>
| Get a single shopeasy list.
|PUT| /api/v1/shopeasylists/<bucket_id>
| Update a single shopeasy list.
|DELETE| /api/v1/shopeasylists/<bucket_id>
| Delete single shopeasy list.
|POST| /api/v1/shopeasylists/<bucket_id>/items
| Add a new item to this shopeasy list.
|PUT|/api/v1/shopeasylists/<bucket_id>/items/<item_id>
| Update this shopeasy list.
|DELETE|/api/v1/bucketlists/<bucket_id>/items/<item_id>
| Delete this single shopeasy list.
|GET| /api/v1/shopeasylists?per_page=10&page=1
| Pagination to get 10 shopeasy list records.
|GET| /api/v1/shopeasylists?q=a bucket
| Search for bucket lists with name like a shopeasy.
-
Clone the project on github:
-
Checkout into the develop branch using
git checkout develop
-
Create a virtual environment and start the virtual environment
-
Install the dependencies via
pip install -r requirements.txt
Setup Database:
Install postgres brew install postgresql
-
type psql in terminal.
-
On postgres interactive interface, type CREATE DATABASE shopeasylist;
-
source .env
Run the Migrations:
-
python manage.py db init
-
python manage.py db migrate
-
python manage.py db upgrade
-
Flask Run
The server should be running on [http://127.0.0.1:5000]