Giter Site home page Giter Site logo

shontzu / deriv-api-docs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from binary-com/deriv-api-docs

0.0 0.0 0.0 4.69 MB

Deriv API Documentation project

Home Page: deriv-api-docs.binary.sx

Shell 0.03% JavaScript 2.39% Perl 0.18% TypeScript 83.60% CSS 0.16% Dockerfile 0.07% SCSS 13.58%

deriv-api-docs's Introduction

Deriv API

This repository contains the information and code related to the Deriv API documentation.

Prerequisite Coverage Status

In this document:

Other documents:

  • General - Contains general philosophy and overview of this package

Pre-installation

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.

Quick start

  1. Fork the project

    In order to work on your own version of the Deriv application, please fork the project to your own repository.

  2. Clone using SSH

    git clone [email protected]:binary-com/deriv-api-docs.git
  3. Enter project directory

    cd deriv-api-docs
  4. Install your dependencies:

    npm ci
  5. Build the project:

    npm run build
  6. Run the Build Run proxy server in seperate terminal

    npm run start:auth

    After that, start the application in another terminal

    npm run start

Starting a Development Server

  1. Core:

If you wish to work on Core, simply run npm run start.

  1. Netlify Proxy + Core :

    1. To work on cms configs, run:

      npm run start:auth
    2. 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

How to Contribute

PRs are based on the master branch

  1. Create branch from the latest master branch

    git checkout master
    git pull upstream master
    git checkout -b [_your_branch_name]
  2. Make your changes

  3. Make pull request

  • Push your changes to your origin

    git push -u origin [_your_branch_name]

Release

There are 2 types of release:

  1. Release to staging:
    1. git tag staging_v20191205 -m 'release staging' # the tag needs to follow the RegExp format /^staging.*/
    2. git push origin staging_v20191205
  2. Release to production:
    1. git tag production_v20191205 -m 'release production'
    2. git push origin production_v20191205

Test link deployment

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.


deriv-api-docs's People

Contributors

mohsen-deriv avatar sanjam-deriv avatar utkarsha-deriv avatar hubert-deriv avatar jim-deriv avatar ali-hosseini-deriv avatar matin-deriv avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.