Closed jonparker closed 3 years ago
Add a script in package.json to start the postgress container by running docker-compose up.
A script in package.json to start the database before starting the other scripts.
If you run the dev:api or dev:sdk scripts in the package.json you get an error
Add "dev:db": "docker-compose up", to the package.json
"dev:db": "docker-compose up",
nxpm-stack init --name sandbox
cd sandbox
code .
dev:sdk
dev:api
Prevented me getting started while following the introduction here: https://www.youtube.com/watch?v=NvcRukwY_kM
MacOS Big Sur
Output from yarn list @nxpm/cli:
yarn list v1.22.5 warning Filtering by arguments is deprecated. Please use the pattern option instead. └─ @nxpm/cli@4.18.0 ✨ Done in 0.96s.
Thanks for the suggestion, I just added it. I will cut a releases tomorrow that adds it!
Hey there @jonparker, I just published version 4.19.0 which has this feature!
Thanks @beeman
Add a script in package.json to start the postgress container by running docker-compose up.
Expected Behavior
A script in package.json to start the database before starting the other scripts.
Current Behavior
If you run the dev:api or dev:sdk scripts in the package.json you get an error
Possible Solution
Add
"dev:db": "docker-compose up",
to the package.jsonSteps to Reproduce (for bugs)
nxpm-stack init --name sandbox
cd sandbox
code .
dev:sdk
ordev:api
npm scripts.Context
Prevented me getting started while following the introduction here: https://www.youtube.com/watch?v=NvcRukwY_kM
Your Environment
MacOS Big Sur
Output from yarn list @nxpm/cli:
yarn list v1.22.5 warning Filtering by arguments is deprecated. Please use the pattern option instead. └─ @nxpm/cli@4.18.0 ✨ Done in 0.96s.