mirror of
https://github.com/hanzoai/kms.git
synced 2026-10-17 11:18:16 +00:00
- Fix 381 files where branding script corrupted variable names (e.g. isHanzo KMSTemplate -> isKmsTemplate) - Rebrand from "Hanzo KMS" to just "KMS" for white-label support (allows Lux KMS, Hanzo KMS, etc. via configuration) - 856 files, purely string replacements, no logic changes
35 lines
718 B
Plaintext
35 lines
718 B
Plaintext
---
|
|
title: "Express, Fastify, Koa"
|
|
description: "How to use KMS to inject environment variables and secrets into an Express app."
|
|
---
|
|
|
|
Prerequisites:
|
|
|
|
- Set up and add envars to [KMS Cloud](https://kms.hanzo.ai)
|
|
- [Install the CLI](/cli/overview)
|
|
|
|
The steps apply to the following non-exhaustive list of frameworks:
|
|
|
|
- [Express](https://expressjs.com)
|
|
- [Fastify](https://www.fastify.io)
|
|
- [Koa](https://koajs.com)
|
|
|
|
## Initialize KMS for your app
|
|
|
|
```bash
|
|
# navigate to the root of your of your project
|
|
cd /path/to/project
|
|
|
|
# then initialize KMS
|
|
hanzo-kms init
|
|
```
|
|
|
|
## Start your application as usual but with KMS
|
|
|
|
```bash
|
|
hanzo-kms run -- <your application start command>
|
|
|
|
# Example
|
|
hanzo-kms run -- npm run dev
|
|
```
|