Running Upgrade in a Dev Env
View SourceThese instructions will set up a development environment for the Upgrade A/B testing platform, paired with your local Torus dev env.
- Clone our fork at https://github.com/Simon-Initiative/UpGrade
- In
backend/packages/Upgradeexecuteyarn install - Create a
.envin that directory from the contents of.env.examplefromguides/upgrade/.env.example - In your Postgres, manually create a new database
upgrade - Executing
npm run devshould populate the database. Subsequent executions will fail until you comment out line 83 ofbackend/packages/Upgrade/src/loaders/typeormLoader.ts - From
frontenddirectory, runyarn install - From
frontenddirecttory, runnpm run start
You will also need to specify Torus .env variables:
UPGRADE_EXPERIMENT_PROVIDER_URL=http://localhost:3030
UPGRADE_EXPERIMENT_USER_URL=http://localhost:4200