Local launch / DONE

  1. First you need to access the source code bx4/../exchanger-client-web

  2. Clone the project locally from your repository to your desktop PC

  3. By default the project will have a box branch you need to create your own branch to work in. The box branch will receive updates and you should accept them in your branch.

  4. You must have NodeJS installed on your work PC to work with the project

  5. After the project is downloaded and NodeJS is installed go to the project folder and execute the following commands (to install the necessary packages and create the basic configuration):

  6. npm i
    npm run configure
  7. After configuring the project, our project has a client configuration file config/app.json in which we need to point the client to the server

    config/app.json
    ...
    "__proxy_to_rest_api": "http://localhost:3010"
    ...

    а) To do this, set the URL to http://domain/service instead of http://localhost:3010. For example, you will have the following: https://www.domain.com/service. (enter ‘www’ if you have a domain in the format www.domain.com or withoutwww’ if in the format domain.com or subdomain if in the format subdomain.domain.com). "__proxy_to_rest_api": "https://www.domain.com/service" б) The developer's IP must be whitelisted in CloudFlare. The IP must be static. Insturctions: IP whitelisted by CloudFlare

  8. Then save the file and you can run the project in development mode using the command

    npm run dev
  9. Now you can modify the code and immediately see the changes at the path http://localhost:8080

Last updated