# 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.
Start the
backend, thefrontendand theadminapplications. This will create 2 users:Login using the individual lender's credentials (the password is defined in your
.envasDEFAULT_USER_PASSWORD).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
/riskAssessmentSignDoneonce 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 settingriskAssessment.isSignedtotrue.Login as an admin (the password is defined in your
.envasADMIN_PASSWORD).Repeat the same process for the organization lender.