Skip to content

Deploy a Flask app to DigitalOcean with one click! This simple Flask API fetches a random Chuck Norris joke and is pre-configured for DigitalOcean's One-Click Deploy—no setup required, just click and launch.

Notifications You must be signed in to change notification settings

do-community/do-one-click-deploy-flask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

79a8df8 · Mar 21, 2025

History

2 Commits
Mar 21, 2025
Mar 21, 2025
Mar 21, 2025
Mar 21, 2025
Mar 21, 2025
Mar 21, 2025

Repository files navigation

One-Click Deploy: Flask Chuck Norris Joke API

This is a simple Flask API that fetches a random Chuck Norris joke and returns it as JSON. With DigitalOcean's One-Click Deploy button, you can instantly deploy this app in the cloud.

How It Works

  • When you visit /, the app fetches a random joke from the Chuck Norris API.
  • Returns the joke as JSON.
  • Runs on port 8080.

Repository Structure

do-one-click-deploy-flask/
│── app.py                 # Flask application fetching jokes
│── wsgi.py                # WSGI entry point for deployment
│── requirements.txt       # Dependencies for the Flask app
│── .do/
│   └── deploy.template.yaml  # DigitalOcean deployment configuration
│── README.md              # Project documentation

Deploy to DigitalOcean

Click the button below to instantly deploy this app on DigitalOcean App Platform:

Deploy to DO

Running Locally

git clone https://github.com/do-community/do-one-click-deploy-flask.git
cd do-one-click-deploy-flask
pip install -r requirements.txt
python app.py

License

MIT License

About

Deploy a Flask app to DigitalOcean with one click! This simple Flask API fetches a random Chuck Norris joke and is pre-configured for DigitalOcean's One-Click Deploy—no setup required, just click and launch.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages