项目作者: bitcapital-hq

项目描述 :
An open marketplace to buy and sell products using Bitcapital digital banking accounts platform.
高级语言: TypeScript
项目地址: git://github.com/bitcapital-hq/marketplace-sample.git
创建时间: 2019-01-21T23:48:50Z
项目社区:https://github.com/bitcapital-hq/marketplace-sample

开源协议:

下载


Marketplace sample

=====================================
Sample project of a bit capital client. You should go through this code if you are interested in developing using bitcapital sdk.

This project is a rough sample of a marketplace api.

Development Steps

1) Setup local infrastructure - DONE
2) Project setup - DONE
3) Design database schema - DONE
4) Develop all models - DONE
5) User SignUp - DONE
6) Get user information - DONE
7) KYC documents - DONE
8) Crypto transaction extract - DONE
9) Deposit asset - DONE
10) Withdraw asset - DONE
11) Create product - DONE
12) Create sell offer - DONE
13) User buy product - DONE
14) User Balance - DONE
15) Develop unit tests
16) Develop integration tests
17) Add transactional to the buy product method
18) Add logs
19) Finish documentation

==================================

Getting started

Install dependencies using Yarn.

  1. yarn install

Running the local development server

Install locally Postgres and create a database with a custom name and change the api/config/bitcapital.config.ts archive with your data.

Start the server using Yarn for development, with live rebuilding:

  1. yarn run watch

Start the jobs in development mode.

  1. yarn run workers --development

Running the development console

To connect interactively with the server, use the built-in REPL Console.

  1. yarn run console

Running the Unit Tests

After a initial successful initialization for the database seed creation, you can run the unit tests:

  1. yarn test

Running in production

To start the production server, build the typescript than start the project.

  1. yarn start

==================================