-
Ask a team member to add you to the CSSAT organization in GitHub.
-
Ask a team member to add you to the CSSAT vault in 1Pass.
-
Ensure that you have postgres installed and running on your machine.
-
Ensure that you have a recent-ish version of node, yarn, and npm on your machine.
-
Generate personal access token through Github
-
Add the following lines to
~/.npmrc//npm.pkg.github.com/:_authToken=<PERSONAL_ACCESS_TOKEN> //npm.pkg.github.com/cssat/:_authToken=<PERSONAL_ACCESS_TOKEN> -
yarn login --registry=https://npm.pkg.github.com- Enter your Github username
- Enter your email address associated with your Github account
-
Make sure that your SSH key(s) are added to your GitHub account.
- Run
script/clone-repos-list.sh referral-repo.listto download the repos required to completely establish a development referral environment (WARNING: This script willrm -R -fany directory with the prefixacorn-before beginning the clone). Repos will clone into the directory that the script is run from.
-
Find
script/dev-setupin all repos. Ensure thatYARN_VERSION=X.X.Xis set for the version of yarn you are running. If it's not, update the yarn version to matchyarn -v(TODO: update yarn version check to be "greater than" X instead of "equal to" X). -
Run
script/setup-install-build.sh. This should complete all of the relevant setup commands across the cloned repos. If needed, the script will also start databases across the repos. When prompted, enter the Transcrypt password from the CSSAT vault within the Substantial 1Password account. -
If you don't have an email address with the
substantial.comdomain, ask a CSSAT team member to be added to the Google Developeresit-migrate-project. There, you will find theOIDC_CLIENT_IDandOIDC_CLIENT_SECRETfor theesit-migrate-web-client. Next, inacorn-api/api/.envrc...- Comment the
OIDC_CLIENT_IDandOIDC_CLIENT_SECRETvariables you just decrypted above. - Replace the commented variables with
OIDC_CLIENT_IDandOIDC_CLIENT_SECRETfrom theesit-migrate-web-client(TODO: We should probably just finish SAW integration so we can all run from a single client id and secret)
- Comment the
-
Start the api:
cd acorn-api/api yarn host -
Start the web client:
cd acorn-web-client yarn startNOTE: It may also be helpful to add an
.env.localtoacorn-web-clientwith aSKIP_PREFLIGHT_CHECK=trueentry. See further discussion here. -
Start the referral component:
cd acorn-referral-component/component yarn host -
Start the referral viewdata:
cd acorn-referral-viewdata yarn host
-
Until we set up ssh tunneling, ssh into the box
ssh ec2-user@ec2-34-234-208-52.compute-1.amazonaws.com -
optionally:
ssh -i <path-to-private-key> ec2-user@ec2-34-234-208-52.compute-1.amazonaws.com -
connect to the mssql db
sqlcmd -S cssat-dcyf-db.crartr7yq7ee.us-east-1.rds.amazonaws.com,1433 -U admin -P <password>