Add integrations anchor and preliminary framework integrations to docs

This commit is contained in:
Tuan Dang
2022-11-28 09:57:17 -05:00
parent 7ab2289c99
commit 7447288e5c
19 changed files with 323 additions and 38 deletions

View 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
```