Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/well-balanced/simple-event-listener
simple-event-listener
https://github.com/well-balanced/simple-event-listener
docker-compose nestjs prisma typescript
Last synced: 3 days ago
JSON representation
simple-event-listener
- Host: GitHub
- URL: https://github.com/well-balanced/simple-event-listener
- Owner: well-balanced
- Created: 2022-06-27T17:36:01.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-18T13:37:13.000Z (over 2 years ago)
- Last Synced: 2024-10-11T06:26:15.690Z (26 days ago)
- Topics: docker-compose, nestjs, prisma, typescript
- Language: TypeScript
- Homepage:
- Size: 543 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# simple event listener
this is simple event listner server. table DDL is [here](https://github.com/well-balanced/simple-event-listener/blob/main/prisma/migrations/20220628114322_/migration.sql)
## Tech stack
- TypeScript
- Nest.js
- MySQL
- Node v16## Setup
> 📌 if you are using Docker, you can just use `.env` as it is, or change `DATABASE_URL` in `.env````sh
# using docker
$ npm run docker:dev$ npm i
$ npm run prisma:gen && npm run migrate:dev
$ npm run start:dev
```## Docs
**Swagger:** http://localhost:3000/docs
## Test
> 📌 you can check e2e test in [app.e2e-spec.ts](https://github.com/well-balanced/simple-event-listener/blob/main/test/app.e2e-spec.ts) file.```sh
$ npm run test
$ npm run test *.spec.ts # testing specific files
```### e2e test
```sh
$ npm run test:e2e
```### Test coverage
```sh
$ npm run test:cov
```### Generate Seed data and performance test
```sh
$ npm run prisma:seed -- --seedReviews --findLogs
```## ERD diagram
![ERD](https://user-images.githubusercontent.com/48206623/176199054-05ee58dd-3a79-403c-b0bb-5eb144b4b962.png)