-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(example): restructure and update basic example
- Loading branch information
Showing
20 changed files
with
54 additions
and
34 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Example for nest-amqp | ||
|
||
This is a example NestJS project that is using nest-amqp. | ||
It is a REST-Interface to interact with an ActiveMQ Broker. | ||
|
||
## Step 1: Start docker image to have an AMQP broker | ||
|
||
``` | ||
docker-compose up | ||
``` | ||
|
||
## Step 2: Start example | ||
|
||
``` | ||
npm install | ||
npm run start | ||
``` | ||
|
||
HTTP server is listing under port `4444`. | ||
You can use the requests in `./http-requests/add-user.http` for testing; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"name": "nest-amqp-example", | ||
"scripts": { | ||
"prebuild": "rimraf dist", | ||
"build": "nest build", | ||
"start": "nest start", | ||
"start:dev": "nest start --watch", | ||
"start:prod": "node dist/main" | ||
}, | ||
"dependencies": { | ||
"@nestjs/common": "^8.0.6", | ||
"@nestjs/core": "^8.0.6", | ||
"@nestjs/platform-express": "^8.0.6", | ||
"@team-supercharge/nest-amqp": "^2.0.0", | ||
"class-transformer": "^0.4.0", | ||
"class-validator": "^0.13.1", | ||
"reflect-metadata": "^0.1.13", | ||
"rimraf": "^3.0.2", | ||
"rxjs": "^7.3.0" | ||
}, | ||
"devDependencies": { | ||
"@nestjs/cli": "^8.1.1", | ||
"@nestjs/schematics": "^8.0.2", | ||
"@types/express": "^4.17.13", | ||
"@types/node": "^16.4.13", | ||
"ts-loader": "^9.2.5", | ||
"ts-node": "^10.2.0", | ||
"tsconfig-paths": "^3.10.1", | ||
"typescript": "^4.3.5" | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters