Skip to content

Final project assignment. Python flight web simulator prototype. Metropolia UAS (March - May, 2024)

Notifications You must be signed in to change notification settings

Viktoriia-code/suitcase-adventure-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎒 Suitcase Adventure (Web Version) 🌍

Embark on a journey like no other as you explore the world while learning about the impact of your travels on the environment! 🌱✈️

📅 March - May, 2024

🎮 About the game

Suitcase Adventure is a web-based game that blends entertainment with environmental education.

Players explore global destinations, aiming to reduce their carbon footprint while receiving feedback on their travel emissions. The frontend offers an interactive map, colorful graphics, and user-friendly navigation, while the backend handles user data, airports, flights, and carbon footprint calculations.

The game challenges players to make eco-friendly travel choices, providing educational tips and encouraging strategic decisions to minimize environmental impact.

image image

💾 Technical stack overview

  • Frontend: HTML, CSS, JavaScript
  • Backend: Python, Flask
  • Database: SQL
  • 3rd party API: Open Weather API

🔌 Modules

  • Flask
  • Flask-Cors
  • geopy
  • mysql-connector-python
  • python-dotenv
  • pytz
  • requests
  • timezonefinder
  • wikipedia

🔧 Install the required Python packages using pip:

Navigate to the folder backend:

cd backend

and use the command:

pip install -r requirements.txt

🔐 ENV file:

Create at the main folder file with name ".env". Add your database password (DB_PASSWORD), OpenWeatherMap API key (WEATHER_API_KEY), host and port to the file.

image

DB_PASSWORD=''
DB_HOST=''
DB_PORT=''
DB_NAME=''
DB_USER=''
WEATHER_API_KEY=''

📁 Database architecture and installation:

💡 Use the suitcase.sql file to download the database on your SQL server

image image

About

Final project assignment. Python flight web simulator prototype. Metropolia UAS (March - May, 2024)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •