- Primero clonamos el repositorio a nuestro equipo local.
- Ingresamos al directorio donde lo clonamos.
- cd Flask-Example
- Hacer Docker Compose (asegurarse de tener el docker engine prendido).
- docker compose up -d
- Abrir en el navegador: http://localhost:5000
- Tambien podemos probar alguna de las rutas: http://localhost:5000/api
Si quisieramos levantarla con Kubernetes, debemos asegurarnos de tener la opcion de Kubernetes activada dentro de nuestro Docker Desktop, y aplicar los 3 manifiestos:
- kubectl apply -f k8s/namespace.yml
- kubectl apply -f k8s/deployment-flask.yml
- kubectl apply -f k8s/service-flask.yml
En este caso accederiamos desde http://localhost:30050, ya que esta definido en el service-flask.yml como nodePort: 30050.
| 🗺 Routes 🗺 | 🚧 Usage 🚧 |
|---|---|
/api |
For API. |
/file |
For streaming files. |
/dl |
For downloading a file. |
/<name> |
Says Hello! 🤚 |
/code |
For redirection. |
/cookies/set |
For setting cookies. |
/cookies/get |
For retrieving cookies. |
/cookies/del |
For deleting cookies. |
/headers |
For working with Headers. |
/ip |
For location based user interface. |
/q |
For getting the parameters passed with URL. |
- Don't be scared 😬 by watching a ton files, Most are just to configure the deploy settings. 🏋️♂️
- Star this repository. ⭐️
- Make a new repository by clicking here. 👲
- Go to modules folder. 📂
- Add or modify the plugins. ✏️
- Crawl any hosting provider. 🕷
- Link your (Newly generated 🍽) repository with it. 🔗
- Deploy it there or replace your username here and deploy using buttons. 🚀
- And done. ✅
- Just deploy this repository for testing. 🧪
Flask-Example is licensed under IDC v1 or later.
This LICENSE is widely used when the owner of the content does not care what you do from the source. No one can appeal copyright or DMCA takedown notices. The end user is free to do anything from the content. Nor the owners or distributors are affiliated with any crime done by the content of the LICENSE.

