Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/omar-besbes/netshop
https://github.com/omar-besbes/netshop
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/omar-besbes/netshop
- Owner: omar-besbes
- License: mit
- Created: 2024-04-20T11:25:05.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-04-20T11:39:15.000Z (7 months ago)
- Last Synced: 2024-10-11T01:54:57.732Z (about 1 month ago)
- Language: TypeScript
- Size: 235 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Open Source eCommerce Backend ( NestJS )
# Assignment for testing class## How To Run Locally ?
1. clone the project
2. run `docker compose up` (to setup a local db)
3. create a file `.env.local` and insert the uri from `.env.example`
4. generate your private key 🔐 ```openssl genrsa -out private_key.pem 2048```
5. generate your public key 🔑 ```openssl rsa -in private_key.pem -out public_key.pem -outform PEM -pubout```
6. start server `pnpm run start:dev`## How to Run Tests ?
1. run `pnpm run test`![image](https://github.com/omar-besbes/netshop/assets/86571415/57e31867-68c2-45ce-9809-be570a7bf227)
## How to Check Test Coverage ?
1. run `pnpm run test:cov`![image](https://github.com/omar-besbes/netshop/assets/86571415/9c6a0252-e2f7-416d-86b5-e94cde00d230)