Skip to content

Commit

Permalink
chore: Update README.md to include generation of mock data (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
Max-vS authored Jun 8, 2024
1 parent 3471602 commit bd6e6d8
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,42 @@ Consider checking out the commands listed in /app/Makefile.

> Please only use them if you know what you are doing!
### Generating mock data

Generate mock users, opportunities, applications and reviews using **faker** scripts.

How to generate mock data:

1. **Run local DB**

```bash
docker-compose up
```

2. **Login via Slack Authentication**

- Open the UI and log in via Slack authentication. This will create a session and a User entry in the DB.

3. **Seed local DB**

- Run the following command to seed the local DB with mock data:

```bash
bun db:seed
```

Command Line Options:

```bash
~ bun db:seed -h
```

Reset/Clear DB:

```bash
~ bun prisma migrate reset
```

### Working on a Linear ticket

Working with Linear tickets is very similar to working with GitHub issues.
Expand Down

0 comments on commit bd6e6d8

Please sign in to comment.