Compare commits

...

2 commits

Author SHA1 Message Date
nyx
dbee0d65c2 add nix shell thingy 2025-03-12 22:39:18 -05:00
nyx
8258e5ab0a Start documentation work 2025-03-12 21:30:00 -05:00
2 changed files with 38 additions and 1 deletions

View file

@ -1,3 +1,28 @@
# nyxask
qna software thingy
qna software thingy
## Setup
1. Create the database:
```sql
CREATE DATABASE nyxask WITH ENCODING = 'UTF8';
CREATE USER nyxask WITH ENCRYPTED PASSWORD 'nyxask';
GRANT ALL PRIVILEGES ON DATABASE nyxask TO nyxask;
ALTER DATABASE nyxask OWNER TO nyxask;
\q
```
2. Create the venv:
```shell
python -m venv ./.venv
```
3. Install requirements:
```shell
pip install -r requirements.txt
```
4. Run the app:
```shell
python app/app.py
```

12
shell.nix Normal file
View file

@ -0,0 +1,12 @@
let
pkgs = import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/b62d2a95c72fb068aecd374a7262b37ed92df82b.tar.gz") {};
in pkgs.mkShell {
packages = [
(pkgs.python313.withPackages (python-pkgs: with python-pkgs; [
# select Python packages here
flask
flask-sqlalchemy
psycopg2
]))
];
}