This is a PoC project to build Gen3 on EdgeDB. The server is built with FastAPI and packaged with Poetry. The API is not compatible with Gen3.
Install required software:
Then use make
to install the dependencies. Before that,
a virtualenv is recommended.
If you don't manage your own, Poetry will create one for you
during make
, and you must activate it by:
poetry shell
Optional requirements:
Create a file .env
in the source code with:
DB_USER=...
DB_PASSWORD=...
Run the server (both Python and Web dev server) with auto-reloading:
gen3 run
Try out the website at: http://localhost:8080/.
To run tests:
pytest --cov=gen3 tests
Run only the server:
gen3 run --no-web
Run only the Web dev server under web
folder:
yarn serve
To make a release:
make dist
To clean releases:
make clean