Init commit

This commit is contained in:
2025-07-03 01:37:41 +03:00
commit 9d5a1119e6
5 changed files with 66 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
.venv/
__pycache__/
*.py[cod]
*$py.class
.python-version
+7
View File
@@ -0,0 +1,7 @@
from flask import Flask, render_template
app = Flask(__name__)
@app.route("/")
def hello_world():
return render_template('index.html')
+1
View File
@@ -0,0 +1 @@
Flask==3.1.1
+24
View File
@@ -0,0 +1,24 @@
{ pkgs ? import <nixpkgs> {} }:
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
'';
}
+28
View File
@@ -0,0 +1,28 @@
<html>
<head>
<title>Coders Squad</title>
</head>
<body>
<h1>Coders Squad</h1>
<h2>Сервисы</h2>
<h3>Сайты</h3>
<ul>
<li>
<a href="http://b.codrs.ru">Sharkey</a>
&mdash; федеративная соц. сеть
</li>
<li>
<a href="http://g.codrs.ru">Gitea</a>
&mdash; хостинг репозиториев
</li>
<li>Peertube &mdash; федеративный хостинг видео</li>
<li>
<a href="http://s.codrs.ru">4get</a>
&mdash; прокси-поисковик
</li>
</ul>
</body>
</html>