Skip to content

zrwusa/bunny-micro

Folders and files

NameName
Last commit message
Last commit date
Oct 1, 2024
Oct 9, 2024
Oct 9, 2024
Sep 6, 2024
Sep 6, 2024
Sep 6, 2024
Sep 10, 2024
Oct 3, 2024
Sep 26, 2024
Oct 9, 2024
Oct 9, 2024
Sep 6, 2024
Sep 6, 2024

Repository files navigation

Description

system architecture diagram

Bunny Micro is part of this system architecture and is responsible for the API service in this architecture.

It is a microservice framework based on NestJS, used to build gRPC APIs:

  • TypeORM combined with PostgreSQL is used to implement structured data storage.
  • Standardizes service layer communication protocols and standardizes controller layer communication protocols.
  • SOLID Principle

Project setup

.env setup

PORT=9090
MICRO_PORT=50051
FRONT_END_PORT=3000

POSTGRES_HOST=localhost
POSTGRES_PORT=5432
POSTGRES_USERNAME=postgres
POSTGRES_PASSWORD=your_postgresql_password
POSTGRES_DATABASE=your_database

REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=
$ pnpm install

Compile and run the project

# development
$ pnpm start

# watch mode
$ pnpm start:dev

# production mode
$ pnpm start:prod

Run tests

# unit tests
$ pnpm test

# e2e tests
$ pnpm test:e2e

# test coverage
$ pnpm test:cov

Resources

Stay in touch

License

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published