From 9d5a1119e64fc50dfe63d6c7581083db33a4e438 Mon Sep 17 00:00:00 2001 From: Sweetbread Date: Thu, 3 Jul 2025 01:37:41 +0300 Subject: [PATCH] Init commit --- .gitignore | 6 ++++++ app.py | 7 +++++++ requirements.txt | 1 + shell.nix | 24 ++++++++++++++++++++++++ templates/index.html | 28 ++++++++++++++++++++++++++++ 5 files changed, 66 insertions(+) create mode 100644 .gitignore create mode 100644 app.py create mode 100644 requirements.txt create mode 100644 shell.nix create mode 100644 templates/index.html diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..23a44d3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +.venv/ + +__pycache__/ +*.py[cod] +*$py.class +.python-version diff --git a/app.py b/app.py new file mode 100644 index 0000000..598b084 --- /dev/null +++ b/app.py @@ -0,0 +1,7 @@ +from flask import Flask, render_template + +app = Flask(__name__) + +@app.route("/") +def hello_world(): + return render_template('index.html') diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..aa4b129 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +Flask==3.1.1 diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..61be21d --- /dev/null +++ b/shell.nix @@ -0,0 +1,24 @@ +{ pkgs ? import {} }: +let + pypkgs = pkgs.python3Packages; +in +pkgs.mkShell { + name = "codrs.ru"; + + buildInputs = with pypkgs; [ + python + virtualenv + ]; + + shellHook = '' + if [ ! -d "venv" ]; then + python -m venv .venv + fi + + source .venv/bin/activate + + if [ -f "requirements.txt" ]; then + pip install -r requirements.txt + fi + ''; +} diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..2e9a904 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,28 @@ + + + Coders Squad + + +

Coders Squad

+ +

Сервисы

+ +

Сайты

+ + + + \ No newline at end of file