Compare commits
2 commits
ccbbbffe6f
...
dbee0d65c2
Author | SHA1 | Date | |
---|---|---|---|
dbee0d65c2 | |||
8258e5ab0a |
2 changed files with 38 additions and 1 deletions
27
README.md
27
README.md
|
@ -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
12
shell.nix
Normal 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
|
||||
]))
|
||||
];
|
||||
}
|
Loading…
Add table
Reference in a new issue