I have finally finished this application and am excited to share it with others. It is now complete and ready for use.
This project is a Launch Card Flask Application designed to display SpaceX launch data in a convenient and user-friendly way. The application fetches data from the SpaceX API and uses a macro-based HTML template to render the launch information dynamically.
- Fetches live SpaceX launch data from the SpaceX API.
- Displays key details such as mission name, launch date, and additional resources (e.g., articles, Wikipedia links).
- Uses Flask for the backend and Jinja2 macros for efficient HTML rendering.
- Python 3.7 or higher
- Flask installed (or a
requirements.txt
file)
-
Clone the repository:
git clone https://github.com/your-username/your-repo-name.git cd your-repo-name
-
Set up a virtual environment:
python -m venv venv
-
Activate the virtual environment:
- macOS/Linux:
source venv/bin/activate
- Windows (Command Prompt):
venv\Scripts\activate
- Windows (PowerShell):
.\venv\Scripts\Activate.ps1
- macOS/Linux:
-
Install the required dependencies:
pip install -r requirements.txt
-
Start the Flask development server:
flask run
-
Open your browser and navigate to:
http://127.0.0.1:5000
- Add search or filtering functionality for launch data.
- Implement pagination or infinite scrolling for larger datasets.
- Enhance styling with a CSS framework such as Bootstrap or TailwindCSS.