mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Add integrations anchor and preliminary framework integrations to docs
This commit is contained in:
42
docs/integrations/frameworks/express.mdx
Normal file
42
docs/integrations/frameworks/express.mdx
Normal file
@@ -0,0 +1,42 @@
|
||||
---
|
||||
title: "Express, Fastify, Koa"
|
||||
---
|
||||
|
||||
Prerequisite: [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 Infisical for your app
|
||||
|
||||
```bash
|
||||
# move to your app
|
||||
cd /path/to/project
|
||||
|
||||
# initialize infisical
|
||||
infisical init
|
||||
```
|
||||
|
||||
## Modify the start script in your `package.json`
|
||||
|
||||
```json
|
||||
...
|
||||
"scripts": {
|
||||
"start": "infisical run -- node index.js"
|
||||
"dev": "infisical run -- nodemon index.js" // if using nodemon for dev
|
||||
}
|
||||
...
|
||||
```
|
||||
|
||||
## Start your server with environment variables injected
|
||||
|
||||
```bash
|
||||
npm run start
|
||||
|
||||
# or start development server
|
||||
|
||||
npm run dev
|
||||
```
|
||||
Reference in New Issue
Block a user