===================================== 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.
- Setup local infrastructure - DONE
- Project setup - DONE
- Design database schema - DONE
- Develop all models - DONE
- User SignUp - DONE
- Get user information - DONE
- KYC documents - DONE
- Crypto transaction extract - DONE
- Deposit asset - DONE
- Withdraw asset - DONE
- Create product - DONE
- Create sell offer - DONE
- User buy product - DONE
- User Balance - DONE
- Develop unit tests
- Develop integration tests
- Add transactional to the buy product method
- Add logs
- Finish documentation
==================================
Install dependencies using Yarn.
yarn install
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:
yarn run watch
Start the jobs in development mode.
yarn run workers --development
To connect interactively with the server, use the built-in REPL Console.
yarn run console
After a initial successful initialization for the database seed creation, you can run the unit tests:
yarn test
To start the production server, build the typescript than start the project.
yarn start
==================================