Skip to content

Commit

Permalink
Merge pull request #28 from ductilestudios/tweak-initial-build
Browse files Browse the repository at this point in the history
Add docker services to build steps
  • Loading branch information
Shpigford authored Jan 11, 2024
2 parents 80df3ea + 410da61 commit 7562f13
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ You'll need Docker installed to run the app locally.
```
cp .env.example .env
yarn install
yarn run dev:services
yarn prisma:migrate:dev
yarn prisma:seed
yarn dev
Expand Down Expand Up @@ -81,6 +82,12 @@ yarn install # re-run if it hangs
yarn dev
```

#### Start Postgres & Redis Services

```
yarn run dev:services
```

#### Migrate DB

In a separate terminal, run the following command. This will connect to the Postgres DB running inside Docker and run all the migrations in `/prisma/migrations`.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"license": "MIT",
"scripts": {
"dev": "nx run-many --target serve --projects=client,advisor,server,workers --parallel --host 0.0.0.0 --nx-bail=true --maxParallel=100",
"dev:services": "COMPOSE_PROFILES=services docker-compose up",
"dev:services": "COMPOSE_PROFILES=services docker-compose up -d",
"dev:services:all": "COMPOSE_PROFILES=services,ngrok,stripe docker-compose up",
"dev:workers:test": "nx test workers --skip-nx-cache --runInBand",
"dev:server:test": "nx test server --skip-nx-cache --runInBand",
Expand Down

0 comments on commit 7562f13

Please sign in to comment.