This application can be used to manipulate a collection of cosmetic products by applying the CRUD operations through REST API. This is achieved using Flask framework to expose specific endpoints and one of three database engines (SQLite, PostgreSQL or MongoDB).
- The JSON returned by the backend app after a HTTP request using GET method
- One adds an item to the database by sending a HTTP request using POST method and putting the details of the added product in JSON format inside the body of the request
- The product collection after addition
- One can remove an item by sending a HTTP request using DELETE method. Here's the response after sending the request using cURL CLI utility
- The product collection after removal
- clone the repository
- (optional but preferable) create a virtual environment
- install the dependencies in the requirements.txt file using pip
- open a new terminal and make sure that you are in the directory of the cloned repository
- run the app using the following command:
- Python, Werkzeug, Flask
- HTTP, REST API, JSON
- SQLite, PostgreSQL, MongoDB