From c68c194c8c58b08f70561e549c3fcd2aa3c492b7 Mon Sep 17 00:00:00 2001 From: Mr1Blaze Date: Sat, 29 Jun 2024 17:44:50 +0300 Subject: [PATCH 1/3] Created Flask Example application for dokploy and added README.MD --- Flask-Example/.gitignore | 1 + Flask-Example/README.MD | 42 ++++++++++++++++++++++++++++++++++++++++ Flask-Example/main.py | 12 ++++++++++++ 3 files changed, 55 insertions(+) create mode 100644 Flask-Example/.gitignore create mode 100644 Flask-Example/README.MD create mode 100644 Flask-Example/main.py diff --git a/Flask-Example/.gitignore b/Flask-Example/.gitignore new file mode 100644 index 0000000..a979ee7 --- /dev/null +++ b/Flask-Example/.gitignore @@ -0,0 +1 @@ +/venv \ No newline at end of file diff --git a/Flask-Example/README.MD b/Flask-Example/README.MD new file mode 100644 index 0000000..b04330a --- /dev/null +++ b/Flask-Example/README.MD @@ -0,0 +1,42 @@ +# Flask Application Examples + +This repository contains a Flask application along with necessary setup instructions. + +## Installation + +Follow these steps to set up and install the Flask application: + +### Prerequisites + +- Python 3.x installed on your system. You can download Python from [python.org](https://www.python.org/). + +### Setup + +1. Make dir and go to directory: + + ```bash + mkdir + cd + ``` +2. Create and activate a virtual environment: + ```bash + python3 -m venv venv + ``` + Activate the virtual environment: + On windows: + ```bash + venv\Scripts\activate + ``` + On macOS/Linux: + ```bash + source venv/bin/activate + ``` +3. Install dependencies: + ```bash + pip install -r requirements.txt + ``` + +4. Running the Application: + ```bash + python main.py + ``` \ No newline at end of file diff --git a/Flask-Example/main.py b/Flask-Example/main.py new file mode 100644 index 0000000..0a32f20 --- /dev/null +++ b/Flask-Example/main.py @@ -0,0 +1,12 @@ +from flask import Flask + +app = Flask(__name__) + + +@app.route('/') +def hello_world(): + return 'Hello, World!' + + +if __name__ == '__main__': + app.run(debug=False, ip="0.0.0.0", port=5000) From 4f4511755015357b9f195d5681cec8a4abafa772 Mon Sep 17 00:00:00 2001 From: Mr1Blaze Date: Sat, 29 Jun 2024 17:45:22 +0300 Subject: [PATCH 2/3] Edited : Edited README.md --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cf6a1ff..d6381ad 100644 --- a/README.md +++ b/README.md @@ -1 +1,11 @@ -# examples \ No newline at end of file +# Dokploy Examples + +--- +This repository contains examples of how to deploy applications using Dokploy. + + +- Django +- Flask +- FastAPI +- React(coming soon) +- NextJS(coming soon) \ No newline at end of file From 3d5523941593c29c7e65244fc1ce601e821360a7 Mon Sep 17 00:00:00 2001 From: Mr1Blaze Date: Sat, 29 Jun 2024 17:48:07 +0300 Subject: [PATCH 3/3] Added: requirements.txt --- Flask-Example/requirements.txt | Bin 0 -> 268 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 Flask-Example/requirements.txt diff --git a/Flask-Example/requirements.txt b/Flask-Example/requirements.txt new file mode 100644 index 0000000000000000000000000000000000000000..e97ffdf9f4410d8723e5f114b620e4752b558942 GIT binary patch literal 268 zcmY+8yAHxI6hl2D@hhmL<*~3bRAORaF6E(8Xiy;w9}n188BlbU$j7no=e@@j4LY&1-To>EerlMbgNB6>c0kGSY%Gw_{CS;W7Nqsf*`k4W1+i@(yRW zMPJ4