Skip to content

anarodriguezj/python-appengine

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Info

Author Information

  • Name: Juan Vicente Herrera Ruiz de Alejo
  • GitHub: @juanviz
  • Role: Author and Maintainer
  • Affiliation: ICAI

License

This project is licensed under the MIT License - see the MIT License for details.

Currency Converter

This is a simple Python Flask application that converts an amount from euros to dollars using a web interface.

Usage

Run the server with:

python main.py

Then open your browser at http://127.0.0.1:5000/ and use the interface to perform conversions.

Installation

To run the app, install dependencies with:

pip install -r requirements.txt

Deployment to Google App Engine

  1. Install Google Cloud SDK and authenticate:
gcloud init
  1. If not present, create app.yaml with contents similar to:
runtime: python311
entrypoint: gunicorn -b :$PORT main:app

env_variables:
  PORT: 8080
  1. Make sure requirements.txt includes Flask and gunicorn:
flask
gunicorn
  1. Test locally:
gcloud app browse --local-host=127.0.0.1:8080
  1. Deploy to App Engine:
gcloud app deploy --quiet --project=${PROJECT_ID}
  1. Open the application at the App Engine URL printed by the deploy command.

License

This project is distributed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • HTML 64.0%
  • Python 36.0%