# Getting started

# Setting up the platform

Several things need to be done in order to get the project running;

# Configure the environment

The platform runs 3 node.js applications:

  • backend
  • frontend
  • admin

For each application, the environment has to be setup by multiple environment variables.

$ cp backend/.env.example backend/.env
$ cp frontend/.env.example frontend/.env
$ cp admin/.env.example admin/.env

Then, complete each .env file.

# Configure default users for end-to-end tests

The end-to-end tests are using APPROVED users with a valid wallet for the money-in and investment flows. Therefore you need to setup those users before being able to run the end-to-end tests successfully.

  1. Start the backend, the frontend and the admin applications. This will create 2 users:

  2. Login using the individual lender's credentials (the password is defined in your .env as DEFAULT_USER_PASSWORD).

  3. Complete the profile and submit the profile.

    TIP

    Make sure you use your phone number, you will need to sign the risk assessment with it.

    After signing the risk assessment

    YouSign calls the webhook /riskAssessmentSignDone once the risk assessment is successfully signed. If you are running the platform on your local machine, this webhook won't be trigger. Therefore, you will have to manually edit the user's/organization's data by setting riskAssessment.isSigned to true.

  4. Login as an admin (the password is defined in your .env as ADMIN_PASSWORD).

  5. Approve the user.

  6. Repeat the same process for the organization lender.