View Source Running Upgrade in a Dev Env
These 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/Upgrade
executeyarn install
- Create a
.env
in that directory from the contents of.env.example
fromguides/upgrade/.env.example
- In your Postgres, manually create a new database
upgrade
- Executing
npm run dev
should populate the database. Subsequent executions will fail until you comment out line 83 ofbackend/packages/Upgrade/src/loaders/typeormLoader.ts
- From
frontend
directory, runyarn install
- From
frontend
directtory, 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