- Clone this repository
git clone https://github.com/sylviawanjiku/Jacaranda.git
- Navigate to the project directory
cd Jacaranda
- Create the virtual environment
python3 -m venv venv
- Activate the virtual environment
source venv/bin/activate
and get the environment variablessource .env
- Install dependencies needed for the project to run
$ pip install -r requirements.txt
- Run the application
python3 main.py
- To run the tests
pytest
- To the load the data make a get request to
http://127.0.0.1:5000/load-data
export DB_HOST='host' export DB_USERNAME='username' export DB_PASSWORD='' export DB_NAME='database' export FLASK_ENV='development'
- post-message
http://127.0.0.1:5000/message
- get-messages
http://127.0.0.1:5000/message
- get-single-message
http://127.0.0.1:5000/message/<int:message_id>
- patch-single-message
http://127.0.0.1:5000/message/<int:message_id>
- post-ticket
http://127.0.0.1:5000/ticket
- get-tickets
http://127.0.0.1:5000/ticket
- get-single-ticket
http://127.0.0.1:5000/ticket/<int:ticket_id>
- patch-single-ticket
http://127.0.0.1:5000/ticket/<int:ticket_id>
- load-data
http://127.0.0.1:5000/load-data