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 months 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 (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-18T13:37:13.000Z (almost 3 years ago)
- Last Synced: 2025-04-01T21:53:19.547Z (3 months ago)
- Topics: docker-compose, nestjs, prisma, typescript
- Language: TypeScript
- Homepage:
- Size: 543 KB
- Stars: 1
- Watchers: 1
- 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
