Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request #22 from cfortuner/env-readme-fix
Browse files Browse the repository at this point in the history
README update for .env files
  • Loading branch information
cfortuner authored Feb 16, 2023
2 parents 7805b29 + cd06da1 commit 129e583
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,17 @@ See our docs for more info on how to use the library.

### Examples

To run an example, clone the repo and run the following commands

To run an example, clone the repo and follow these steps
1. Copy contents of `/apps/web/.env.example` into a new file, `/apps/web/.env`
2. Copy contents of `/examples/.env.example` into a new file, `/examples/.env` and add your [OpenAI API Key](https://openai.com/api/) to the `OPENAI_API_KEY` field
3. Run the following commands:
```
pnpm i
pnpm dev
```
4. Run the following command in a different terminal window/tab:
*NOTE: example names found in [/examples/src](https://github.com/cfortuner/promptable/tree/main/examples/src)
```
pnpm run example <example name>
```

Expand Down
4 changes: 2 additions & 2 deletions apps/demos/gpt-prisma-seed/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

# How to run

make sure you're in gpt-prisma-seed directory. copy .env.example to .env, add your openAI key
Copy .env.example to .env, add your openAI key

all the relevant code is in prisma/seed.ts
Script for seeding is in prisma/seed.ts

run commands:

Expand Down

0 comments on commit 129e583

Please sign in to comment.