diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 8394b96..0000000 --- a/Dockerfile +++ /dev/null @@ -1,11 +0,0 @@ -FROM node:18 - -WORKDIR /app/ - -COPY example/package.json example/package-lock.json /app/ -RUN npm install - -COPY example/ /app/ -COPY src/ /app/src/nestjs-eventstore/ - -CMD [ "npm", "run", "start:dev" ] diff --git a/README.md b/README.md index 2985d1c..5423e2f 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,10 @@ You require to have a nestjs project with this modules already installed and loa npm install @aulasoftwarelibre/nestjs-eventstore +- pnpm + + npm add @aulasoftwarelibre/nestjs-eventstore + - yarn yarn add @aulasoftwarelibre/nestjs-eventstore @@ -63,13 +67,26 @@ Distributed under the EUPL-1.2 License. See `LICENSE` for more information. ## Running the example -To run the example you will need docker. Just run: +To run the example you will build the library first: + +```shell +pnpm run build +``` + +Then go to the example folder an run the containers: ```shell +cd examples/banking docker compose up -d ``` -And a few minutes later you will access to the example application in the next urls: +And finally run the project: + +```shell +pnpm run start:dev +``` + +You will access to the example application in the next urls: - [Swagger API](http://localhost:3000/api/) - [EventStore Database (Write model)](http://localhost:2113)