项目作者: luster02

项目描述 :
Ecommerce backend with nestjs framework
高级语言: TypeScript
项目地址: git://github.com/luster02/SkipForce-Ecommerce-Backend.git
创建时间: 2020-08-17T20:15:47Z
项目社区:https://github.com/luster02/SkipForce-Ecommerce-Backend

开源协议:

下载


SkipForce-Ecommerce-Backend

Ecommerce Backend skipForce (NestJS)

Introduction

skipForce is an alternative to build a functional ecommerce in a simple way.

Quick Start

Prerequisites

  • Nodejs >=10.13.0
  • Nestjs cli
  • postgresql
Clone this repository then install dependencies
  1. npm install && nest update
Create .env file
  1. PORT=[API_port]
  2. HOST=[database_port]
  3. USERNAME=[database_username]
  4. PASSWORD=[database_password]
  5. DB_TYPE=[database_type]
  6. DB_PORT=[database_port]
  7. DATABASE=[database_name]
  8. JWT_SECRET=[jwt_secret_seed]
  9. JWT_SECRET_CUSTOMER=[jwt_secret_seed]
  10. CLOUD_NAME=[cloudinary_cloud_name]
  11. API_KEY=[cloudinary_api_key]
  12. API_SECRET=[cloudinary_api_secret]
  13. STRIPE_KEY=[stripe_api_key]
Generate and run database migrations
  1. npm run migration:generate <name>
  2. npm run migration:run
Start server
  1. npm start || npm start:dev

Rest

Swagger api Explorer

  1. localhost:<port>/api

GraphQL

Graphql playground

  1. localhost:<port>/graphql