The hub software for user authentication.
- EdgeDB Beta 1 or above
- Python 3.9
- Poetry
-
Create an EdgeDB instance, assuming the instance name is "authub".
-
Clone the repository and work from that directory for following steps.
-
Install Authub with the
standalone
extra dependencies:$ poetry install --extras standalone
-
Bring the EdgeDB schema to the latest:
$ edgedb -I authub migrate
-
Run the development server:
$ authub dev
-
Visit http://localhost:8000/docs for the interactive API documentation.
When the data models written in Python are changed, run the following:
-
Compile the models and update the EdgeDB SDL
*.esdl
files:$ authub compile-schema
-
Generate a new EdgeDB migration revision:
$ edgedb -I authub create-migration
-
Verify the generated DDL
*.edgeql
file, add it to version control. -
Run the migration again:
$ edgedb -I authub migrate