This is the backend API for the Insurance Dashboard application, which displays data from a SQLite database.
This backend is used by the Insurance Dashboard frontend application, which is built with React and can be found deployed here
The data for this backend has been populated from a JSON file, and is stored in a SQLite database. The database schema consists of a single policies table with columns including policy ID, date of purchase, customer ID, fuel type, vehicle segment, premium, and more.
GET /api/policies: Returns a list of all policies in the database.
- Clone the repository:
git clone https://github.com/fparejam/backend-flask.git. - Install dependencies:
pip install -r requirements.txt. - Start the development server:
python app.py. - The API can be accessed at
http://localhost:5000.
This backend is currently hosted on PythonAnywhere at http://fparejam.pythonanywhere.com/.
Feel free to make a request to it:
curl http://fparejam.pythonanywhere.com/api/policies
For any questions or inquiries, please contact fparejamayo@gmail.com.