Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        


Nest Logo

[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.



NPM Version
Package License
NPM Downloads
CircleCI
Coverage
Discord
Backers on Open Collective
Sponsors on Open Collective
Donate us
Support us
Follow us on Twitter


## 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).