Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alideweb/shop-center
online shop backend app developed by nestjs ;)
https://github.com/alideweb/shop-center
Last synced: about 1 month ago
JSON representation
online shop backend app developed by nestjs ;)
- Host: GitHub
- URL: https://github.com/alideweb/shop-center
- Owner: AliDeWeb
- Created: 2024-12-16T09:05:45.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-12-16T09:08:23.000Z (about 1 month ago)
- Last Synced: 2024-12-16T10:22:18.489Z (about 1 month ago)
- Language: TypeScript
- Size: 70.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Shop Center ๐
Welcome to Shop Center โ an open-source e-commerce backend built with NestJS ๐. This project aims to provide a powerful, scalable, and clean architecture for your online store! ๐ป๐
## Features โจ
* Fully customizable ๐ ๏ธ
* Order management ๐ฆ
* Product management ๐ท๏ธ
* User authentication ๐
* Cart management ๐๏ธ
* Payment integration ๐ณ
* RESTful API ๐ก
* Integration and unit tests ๐งช
* Docker support ๐ณ
* And much more! ๐## Tech Stack ๐ ๏ธ
* NestJS (Backend Framework) โ๏ธ
* MongoDB (Database) ๐๏ธ
* TypeScript (Language) ๐ฅ๏ธ
* Docker (Containerization) ๐## How to Get Started ๐
1. Clone this repository:
```bash
git clone https://github.com/AliDeWeb/Shop-Center.git
```2. Install dependencies:
```bash
pnpm install
```3. Set up your environment variables in .env (check .env.example for reference).
4. Run the development server:
```bash
pnpm run start:dev
```5. Visit the API and start building your e-commerce platform! ๐
## Envs Example ๐ช
```ts
NODE_ENV=development | productionPORT=3000
DB_URL="mongodb url"
JWT_SECRET_KEY=12345678
JWT_ACCESS_TOKEN_EXPIRES_IN=15m
JWT_ACCESS_REFRESH_EXPIRES_IN=7dBCRYPT_SALT=10
```before running e2e tests notice that you can edit `/test/test-utils.ts` file and change the test db uri.
if you set `NODE_ENV=development`, you'll be able to access swagger document in `host/document`.
you can download and import postman doc from `project-rootdir/postman`.## Running Tests ๐งช
### This project includes both unit tests and integration tests to ensure the reliability and functionality of the application.
To run the tests, use the following command:
```bash
pnpm run test
```For e2e tests, you can use:
```bash
pnpm run test:e2e
```## Contributing ๐ค
### This project is open source and contributions are always welcome! ๐
If you're excited about creating a great shopping experience and have ideas to improve Shop Center, feel free to fork the repo, open an issue, or submit a pull request! Together, we can make this project even better! ๐ช
## License ๐
This project is licensed under the MIT License. See the LICENSE file for more details.---
This version now includes Docker setup instructions and test running details. Let me know if you need any further adjustments!