Skip to content

Commit

Permalink
Improve README.md spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelLefkowitz committed Oct 20, 2024
1 parent c726cd2 commit c8ad5e2
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ cache1 === cache2;

### Minimal example

Create a prisma schema.
Create a prisma schema:

```prisma
datasource db {
Expand Down Expand Up @@ -117,19 +117,19 @@ docker run --rm -d \
postgres
```

Define the DATABASE_URL environment variable mentioned in our prisma schema.
Define the DATABASE_URL environment variable mentioned in our prisma schema:

```bash
export DATABASE_URL=postgresql://user:password@localhost:5432/db
```

Generate the types for your client.
Generate the types for your client:

```bash
npx prisma generate
```

Migrate the database.
Migrate the database:

```bash
npx prisma migrate dev
Expand Down Expand Up @@ -222,23 +222,26 @@ yarn install

To run tests:

Create a test database:

```bash
docker run --rm -d \
-p 5432:5432 \
-e POSTGRES_DB=db \
-e POSTGRES_USER=user \
-e POSTGRES_PASSWORD=password \
postgres
```

docker run --rm -d \
-p 11211:11211 \
memcached
Create test cache providers:

docker run --rm -d \
-p 6379:6379 \
redis
```bash
docker run --rm -d -p 11211:11211 memcached
docker run --rm -d -p 6379:6379 redis
```

Apply the database migrations:

```bash
export DATABASE_URL=postgresql://user:password@localhost:5432/db
yarn prisma generate --schema ./test/prisma/schema.prisma
Expand Down

0 comments on commit c8ad5e2

Please sign in to comment.