This repository contains the information and code related to the Deriv API documentation.
In this document:
- General - Contains general philosophy and overview of this package
Before running or contributing to this project, you need to install the following packages for your environment
- node >=16.16.0
- npm >=7.21.0
- docusaurus >=2.0.0
- @deriv/ui >=0.1.0
- git (for
contribution) - docker-cli
Note: node -v and sudo node -v should be the same version.
Fork the project
In order to work on your own version of the Deriv application, please fork the project to your own repository.
Clone using SSH
git clone git@github.com:binary-com/deriv-api-docs.git
Enter project directory
cd deriv-api-docsInstall your dependencies:
npm ci
Build the project:
npm run build
Run the Build Run proxy server in seperate terminal
npm run start:auth
After that, start the application in another terminal
npm run start
- Core:
If you wish to work on Core, simply run npm run start.
Netlify Proxy + Core :
To work on cms configs, run:
npm run start:auth
In a separate terminal, this will start the netlify-cms-proxy-server and will enable you to work with the cms locally. and then run:
npm run start
PRs are based on the master branch
Create branch from the latest master branch
git checkout master git pull upstream master git checkout -b [_your_branch_name]
Make your changes
Make pull request
Push your changes to your origin
git push -u origin [_your_branch_name]
There are 2 types of release:
- Release to staging:
git tag staging_v20191205 -m 'release staging'# the tag needs to follow the RegExp format/^staging.*/git push origin staging_v20191205
- Release to production:
git tag production_v20191205 -m 'release production'git push origin production_v20191205
Upon creating PR, Vercel will auto-generate a test link inside the PR. you can use that to preview the test link for the changes you have made.