📥 Installation
📦 pip
JANUX Authentication Gateway is published as a python package and can be installed with
pip
, ideally by using a virtual environment. Open up a terminal and install with:
-
JANUX uses semantic versioning.
This will make sure that you don't accidentally [upgrade to the next major version], which may include breaking changes that silently corrupt your site. Additionally, you can use
pip freeze
to create a lockfile, so builds are reproducible at all times:Now, the lockfile can be used for installation:
This will automatically install compatible versions of all dependencies: fastapi, uvicorn, pymongo, motor and requests. JANUX always strives to support the latest versions, so there's no need to install those packages separately.
🎭 Poetry
JANUX recommends using Poetry for its outstanding dependency management, use:
This command downloads and installs the package and its dependencies and adds the package as a dependency in your pyproject.toml
.
After installation, you can start using the package in your project. If you need to enter the virtual environment managed by Poetry, run:
Verify the Installation:
Updating the Package:
🐙 GitHub
JANUX can be directly used from GitHub by cloning the repository into a subfolder of your project root which might be useful if you want to use the very latest version:
git clone https://github.com/fox-techniques/janux-auth-gateway.git
cd janux-auth-gateway
pip install -e .
🚢 Docker Swarm (RECOMMENEDED)
🐘 PostgreSQL
Secrets ensure sensitive information (like private keys and database credentials) is securely stored. For multi-container setups including PostgreSQL and Redis:
ATTENTION
Make sure you have JANUX configured with .env
. If not, please go to the section configuration.
➊ Grant permissions
First, first make sure permissions are set by running the following command in the terminal:
➋ Configure Docker Secrets
Next, to create secrets, run the following command in the terminal:
➌ Deploy the Stack
Run:
This will:
- Deploy JANUX Authentication Gateway
- Deploy PostgreSQL and Redis as dependencies
- Ensure all services are properly networked
➎ Check If Services Are Running
Verify that all services are running with:
➏ Test the API
Once all services are running, check the API health:
✅ Expected Output:
➐ Stop & Remove the Stack
If you need to stop the application, run:
🌱 MongoDB
Secrets ensure sensitive information (like private keys and database credentials) is securely stored. For multi-container setups including MongoDB and Redis:
ATTENTION
Make sure you have JANUX configured with .env
. If not, please go to the section configuration.
➊ Grant permissions
First, first make sure permissions are set by running the following command in the terminal:
➋ Configure Docker Secrets
Next, to create secrets, run the following command in the terminal:
➌ Deploy the Stack
Run:
This will:
- Deploy JANUX Authentication Gateway
- Deploy MongoDB and Redis as dependencies
- Ensure all services are properly networked
➎ Check If Services Are Running
Verify that all services are running with:
➏ Test the API
Once all services are running, check the API health:
✅ Expected Output:
➐ Stop & Remove the Stack
If you need to stop the application, run:
🤩 CONGRAGULATIONS! Continue to the usage. Let's keep going...🚀