This repository contains a cloud-based web application demonstrating full-stack development using Python, Flask, and IBM Cloudant. The app enables users to interact with a web UI, perform CRUD operations, and store/retrieve data from a managed NoSQL database service in the cloud.
For reference, the ER diagram design is the following
.
├── static/ # CSS, images, and static web assets
├── templates/ # Flask HTML templates (Jinja2)
├── app.py # Main Flask app
├── requirements.txt # Python dependencies
├── README.md # Project documentation
└── .gitignore
- Backend: Python, Flask
- Frontend: Jinja2 templates, HTML/CSS
- Database: IBM Cloudant (NoSQL)
- Deployment: IBM Cloud, local
- Python 3.x
- IBM Cloud account (for Cloudant setup)
- Cloudant service credentials (API key, URL, etc.)
-
Clone the repository:
git clone https://github.com/vitor-a-avancini/final-cloud-app-with-database.git cd final-cloud-app-with-database
-
Install dependencies:
pip install -r requirements.txt
-
Configure Cloudant credentials:
- Set environment variables (
CLOUDANT_URL
,CLOUDANT_USERNAME
,CLOUDANT_APIKEY
) or edit directly inapp.py
if testing locally.
- Set environment variables (
-
Run the Flask app:
python app.py
-
Open your browser:
- Go to http://127.0.0.1:5000
- User-friendly web interface
- Add, view, update, and delete records (CRUD)
- Persistent storage with IBM Cloudant
- Simple, clean layout with Bootstrap CSS (via CDN)
This project is licensed under the MIT License. See LICENSE for details.
Contributions, issues, and feature requests are welcome! Feel free to fork this repository or submit pull requests.
A clean, cloud-ready template for Flask apps with IBM Cloudant.