Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tn9th8/menshop-backend
A Menshop Backend Service use Nest.JS and MongoDB
https://github.com/tn9th8/menshop-backend
factory-pattern full-text-search indexdb jwt mongodb mongodb-attributes-pattern mongoosejs multer nestjs passportjs repository-pattern strategy-pattern
Last synced: 4 days ago
JSON representation
A Menshop Backend Service use Nest.JS and MongoDB
- Host: GitHub
- URL: https://github.com/tn9th8/menshop-backend
- Owner: tn9th8
- Created: 2024-09-06T06:35:57.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2024-11-16T08:57:48.000Z (4 days ago)
- Last Synced: 2024-11-16T09:29:06.466Z (4 days ago)
- Topics: factory-pattern, full-text-search, indexdb, jwt, mongodb, mongodb-attributes-pattern, mongoosejs, multer, nestjs, passportjs, repository-pattern, strategy-pattern
- Language: TypeScript
- Homepage:
- Size: 2.78 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.
## Description
[Nest](https://github.com/nestjs/nest) framework TypeScript starter repository.
## Project setup
```bash
$ npm install
```## 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 10 -c 5 `
>> -H "Authorization: Bearer X.ACCESS.TOKEN.DEMO.X" `
>> -T "application/json" `
>> -p ./test/apache/body.json `
>> http://localhost:8044/api/v1/client/orders/confirm-checkout
```## 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).