This application is a Flask API for a bucket list service that allows users to create, update and delete bucket lists. It also provides programmatic access to the items added to the items created. This API is a REST API and the return format for all endpoints is JSON.
POST /auth/login
POST /auth/register
GET /bucketlists/
: returns all bucket listing of all buckets listGET /bucketlists/<id>
: returns the bucket list with the specified IDPUT /bucketlist/<id>
: updates the bucket list with the specified with the provided dataDELETE /bucketlist/<id>
: deletes the bucket list with the specified IDPOST /bucketlists/<id>/items/
: adds a new item to the bucket list with the specified IDPUT /bucketlists/<id>/items/<item_id>
: updates the item with the given item ID from the bucket list with the provided IDDELETE /bucketlists/<id>/items/<item_id>
: deletes the item with the specified item ID from the bucket list with the provided ID
- Download & Install Python
- Head over to the Python Downloads Site and download a version compatible with your operating system
- To confirm that you have successfully installed Python:
- Open the Command Prompt on Windows or Terminal on Mac/Linux
- Type python
- If the Python installation was successfull you the Python version will be printed on your screen and the python REPL will start
- Clone the repository to your personal computer to any folder
- On GitHub, go to the main page of the repository BucketList API
- On your right, click the green button 'Clone or download'
- Copy the URL
- Enter the terminal on Mac/Linux or Git Bash on Windows
- Type
git clone
and paste the URL you copied from GitHub - Press Enter to complete the cloning process
- Virtual Environment Installation
- Install the virtual environment by typing:
pip install virtualenv
on your terminal
- Install the virtual environment by typing:
- Create a virtual environment by running
virtualenv --python python bl-venv
. This will create the virtual environment in which you can run the project. - Activate the virtual environment by running
source bl-venv/bin/activate
- Enter the project directory by running
cd cp2_blapi
- Once inside the directory install the required modules
- Run
pip install -r requirements.txt
- Run
- Inside the application folder run the app.py file:
- On the terminal type
python app/app.py
to start the application