https://github.com/testdrivenio/flask-htmx-tailwind
https://github.com/smartcontractkit/chainlink-mix
everything will be loaded automatically via direnv
on entering the project-directory
npm install
poetry lock
cd ./smartcontract/
summon -e dev --up brownie console
all envs in ./secrets.yml
:dev have to be set manually
cd ./smartcontract/
brownie console
on brownie-console
run('scenario/00')
on brownie-console
run('scenario/01')
summon -e dev --up flask run --host='::' --port=8080
all envs in ./secrets.yml
:dev have to be set manually
flask run --host='::' --port=8080
flask will use a web3-provider to access kovan via infura
cd ./smartcontract/
summon -e dev --up brownie console --network ${BROWNIE_NETWORK}
networks
are defined in smartcontract/brownie-config.yaml
all envs in ./secrets.yml
:dev have to be set manually
cd ./smartcontract/
brownie console --network kovan
summon -e prod --up flask run --host='::' --port=8080
all envs in ./secrets.yml
:prod have to be set manually
flask run --host='::' --port=8080
add files needed for flask add node-packages from package.lock
nixify
node2nix -l
dig TXT +short o-o.myaddr.l.google.com @ns1.google.com
flask run --host='::' --port=8080
curl -g -6 'http://[2a02:8070:279d:2700:4754:be88:8d7:61ac]:8080'
Quell IPv6 | Ziel IPv6 | Protokoll | Quellport | Zielport | Erlauben | Aktivier | Löschen |
All | All | TCP | 1 : 65535 | 8080 | 1 | 1 | 0 |
edit shell.nix
stop flask
reload shell.nix
needs a flask-restart
in pyproj.toml
- rename project
name
- add to project
authors
"NAME SURNAME <EMAIL>"
nfs nfd nff
https://flask.palletsprojects.com/en/2.0.x/ https://flask.palletsprojects.com/en/2.0.x/quickstart/#a-minimal-application
flask run
FLASK_ENV=development
sets FLASK_DEBUG=1
https://python-poetry.org/docs/
poetry add requests
poetry remove requests
poetry lock --no-update
poetry cache clear --all .
uses default.nix
nix-build
searches the project-root to find the executable and tests
- git repo
.projectile
.dir-locals.el
((nil . ((eval . (setq projectile-project-root file-name-directory)))))
fb/reload-dir-locals-current-buffer
SPC r d b
projectile-invalidate-cache
SPC p i
npm install --package-lock-only --no-package-lock @tailwindcss/custom-forms --save-dev
node2nix
node2nix -l
node2nix --development