Description below generated by Claude 3.5 Sonnet:
A simple and elegant calendar web application that displays events from an SQL database.
- Monthly calendar view
- Event display with details (date, time, location, description, URL)
- Responsive design
- Clean and modern UI
- SQLite database integration
The project follows a clean and maintainable structure:
static/: Static assets (CSS, JavaScript)templates/: HTML templatesdatabase/: SQL schema and database fileapp.py: Main Flask applicationrequirements.txt: Python dependencies
- Install dependencies:
pip install -r requirements.txt-
Initialize the database: The database will be automatically created when you run the application for the first time.
-
Run the application:
python app.py- Visit http://localhost:5000 in your web browser
app.py: Contains the Flask application setup, database models, and API routesstatic/js/calendar.js: Calendar functionality and event handlingstatic/css/styles.css: Styling for the calendar and UI componentstemplates/index.html: Main calendar view templatedatabase/schema.sql: SQL schema for the events table
Events can be added directly to the SQLite database. Each event has the following fields:
- title (required)
- date (required)
- time (optional)
- location (optional)
- description (optional)
- url (optional)
- Python/Flask
- SQLAlchemy
- SQLite
- HTML5
- CSS3
- JavaScript (ES6+)