Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vkondratiuk482/nest-e-commerce-boilerplate
Backend for Ecommerce platform using Nest + PostgreSQL + TypeORM
https://github.com/vkondratiuk482/nest-e-commerce-boilerplate
e-commerce javascript jwt nest nestjs nodejs postgresql roles stripe typeorm typescript
Last synced: 16 days ago
JSON representation
Backend for Ecommerce platform using Nest + PostgreSQL + TypeORM
- Host: GitHub
- URL: https://github.com/vkondratiuk482/nest-e-commerce-boilerplate
- Owner: vkondratiuk482
- Created: 2021-11-18T18:18:19.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-02-07T13:43:18.000Z (almost 3 years ago)
- Last Synced: 2024-04-18T04:01:54.446Z (8 months ago)
- Topics: e-commerce, javascript, jwt, nest, nestjs, nodejs, postgresql, roles, stripe, typeorm, typescript
- Language: TypeScript
- Homepage:
- Size: 282 KB
- Stars: 31
- Watchers: 1
- Forks: 6
- Open Issues: 4
-
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.
# E-commerce Nest
The idea of this project was to build fully functional Ecommerce platform
## Features
- JWT auth
- Roles, Permissions
- Orders, Products
- Stripe payment## Installation
```bash
$ npm install
```## Example of .env file
```bash
DB_NAME=postgres
DB_HOST=localhost
DB_PORT=5432
DB_USERNAME=postgres
DB_PASS=pass123
JWT_ACCESS_SECRET=ACCESS_SECRET
JWT_REFRESH_SECRET=REFRESH_SECRET
STRIPE_API_KEY=STRIPE_KEY
PAYMENT_SUCCESS_URL=http://localhost:3000/order/success?session_id={CHECKOUT_SESSION_ID}
PAYMENT_CANCEL_URL=http://localhost:3000/order/cancel
```## Running the app
```bash
# start docker containers
$ docker-compose up# migrations for default data
$ npx typeorm migration:run# development
$ npm run start# watch mode
$ npm run start:dev
```