FastAPI app to serve static react webpages for Hyperion
Project description
CalypSSO
A Next.js small and static frontend for Hyperion
Next.js development
You can set Hyperion base url in a dotenv .env
yarn install
yarn dev
Pages
The base url of this project is /calypsso
.
You will find:
- http://localhost:3000/calypsso/register
- http://localhost:3000/calypsso/activate
- http://localhost:3000/calypsso/recover
- http://localhost:3000/calypsso/reset-password
- http://localhost:3000/calypsso/login
Compilation
First you need to compile the Next.js project
yarn install
yarn build
The build pages will be located in the /out directory. The small Python package sources are located in /python.
You can install it locally in an other python project using
pip install "path/to/calypsso"
To use it, you need to mount CalypSSO at the subpath /calypsso
For exemple with FastAPI, you could do:
from fastapi import FastAPI
# Define your app
app = FastAPI(
title="MyFastAPIApp",
)
# ...
# Mount CalypSSO app at the subpath /calypsso
calypsso = get_calypsso_app()
app.mount("/calypsso", calypsso)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
calypsso-0.0.1.tar.gz
(456.3 kB
view hashes)
Built Distribution
calypsso-0.0.1-py3-none-any.whl
(518.7 kB
view hashes)