Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amon468/menshop-backend
A Menshop Backend Service using Nest.JS, MongoDB, Redis
https://github.com/amon468/menshop-backend
apache-bench factory-pattern full-text-search generic-repository-pattern indexdb jwt mongodb mongodb-attributes-pattern mongoosejs multer nestjs passportjs pessimistic-locking redis rsa-key-pair strategy-pattern
Last synced: about 16 hours ago
JSON representation
A Menshop Backend Service using Nest.JS, MongoDB, Redis
- Host: GitHub
- URL: https://github.com/amon468/menshop-backend
- Owner: amon468
- Created: 2024-09-06T06:35:57.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2024-12-25T04:12:17.000Z (24 days ago)
- Last Synced: 2025-01-17T08:40:36.242Z (about 23 hours ago)
- Topics: apache-bench, factory-pattern, full-text-search, generic-repository-pattern, indexdb, jwt, mongodb, mongodb-attributes-pattern, mongoosejs, multer, nestjs, passportjs, pessimistic-locking, redis, rsa-key-pair, strategy-pattern
- Language: TypeScript
- Homepage:
- Size: 8.41 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456
[circleci-url]: https://circleci.com/gh/nestjs/nest
A progressive Node.js framework for building efficient and scalable server-side applications. (crtl + shift + v)
## Description
[Nest](https://github.com/nestjs/nest) framework TypeScript starter repository.
## Pre-condition:
```bash
$ node 18.19.1
$ redis 5.0.14
```## Project setup
```bash
$ npm install
$ redis-server
```## Compile and run the project
```bash
# development
$ npm run start# watch mode
$ npm run start:dev# production mode
$ npm run start:prod
```## Run tests
```bash
# unit tests
$ npm run test# e2e tests
$ npm run test:e2e# test coverage
$ npm run test:cov
```## Git branches
```bash
# master is default
$ git checkout master# dev1 for user, auth, role, permission
$ git checkout dev1# dev2 for product, sku, inventory, price,
$ git checkout dev2# dev3 for shop, collection, brand, category, need
$ git checkout dev3# dev3 for cart, purchase, discount
$ git checkout dev4
```## Apache benchmark (For loading/performance testing)
```bash
# guide to write a apache-benchmark-testing command
$ ab: run Apache benchmark
$ -n: number of requests
$ -c: number of concurrency (lượng users đồng thời gửi requests)
$ -H: custom-header
$ -T: content-type
$ -p: include-body# example on CMD
>> ab -n 100 -c 100 `
>> -H "Authorization: Bearer X.ACCESS.TOKEN.DEMO.X" `
>> -T "application/json" `
>> -p ./test/apache/checkout.body.json `
>> http://localhost:8044/api/v1/client/orders/make-payment
```## Resources
Check out a few resources that may come in handy when working with NestJS:
- Visit the [NestJS Documentation](https://docs.nestjs.com) to learn more about the framework.
- For questions and support, please visit our [Discord channel](https://discord.gg/G7Qnnhy).
- To dive deeper and get more hands-on experience, check out our official video [courses](https://courses.nestjs.com/).
- Visualize your application graph and interact with the NestJS application in real-time using [NestJS Devtools](https://devtools.nestjs.com).
- Need help with your project (part-time to full-time)? Check out our official [enterprise support](https://enterprise.nestjs.com).
- To stay in the loop and get updates, follow us on [X](https://x.com/nestframework) and [LinkedIn](https://linkedin.com/company/nestjs).
- Looking for a job, or have a job to offer? Check out our official [Jobs board](https://jobs.nestjs.com).## Support
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please [read more here](https://docs.nestjs.com/support).
## Stay in touch
- Author - [Kamil Myśliwiec](https://twitter.com/kammysliwiec)
- Website - [https://nestjs.com](https://nestjs.com/)
- Twitter - [@nestframework](https://twitter.com/nestframework)## License
Nest is [MIT licensed](https://github.com/nestjs/nest/blob/master/LICENSE).