commit 9d5a1119e64fc50dfe63d6c7581083db33a4e438 Author: Sweetbread Date: Thu Jul 3 01:37:41 2025 +0300 Init commit 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