A modern dashboard for OpenStack - API server
38ea9e3d59
Add initial code of skyline-apiserver Change-Id: Ib425960b707237193fd8531fb3989f29282f5b58 |
||
---|---|---|
docs/api | ||
etc | ||
libs | ||
src/skyline_apiserver | ||
tests | ||
tools/git_config | ||
.dockerignore | ||
.flake8 | ||
.gitignore | ||
.gitreview | ||
.zuul.yaml | ||
alembic.ini | ||
LICENSE | ||
Makefile | ||
mypy.ini | ||
poetry.lock | ||
poetry.toml | ||
pyproject.toml | ||
README-zh_CN.md | ||
README.md |
Skyline API
English | 简体中文
Quick Start
Dependent tools
- make >= 3.82
- poetry >= 1.1.0 (Installation Guide)
Development mode
Only support Linux (Because uvloop & cython)
make install
cp etc/skyline_apiserver.yaml.sample etc/skyline_apiserver.yaml
export OS_CONFIG_DIR=$(pwd)/etc
rm -f /tmp/skyline_apiserver.db
make db_sync
# $ poetry run gunicorn -c etc/gunicorn.py --reload skyline_apiserver.main:app
$ poetry run uvicorn --reload --port 28000 --log-level debug skyline_apiserver.main:app
INFO: Uvicorn running on http://127.0.0.1:28000 (Press CTRL+C to quit)
INFO: Started reloader process [154033] using statreload
INFO: Started server process [154037]
INFO: Waiting for application startup.
INFO: Application startup complete.
You can now access the online API documentation: http://127.0.0.1:28000/docs