curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash -
sudo apt-get install -y nodejs
Install Brew
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
Then the following to add Brew to bash profile
test -d ~/.linuxbrew && eval $(~/.linuxbrew/bin/brew shellenv)
test -d /home/linuxbrew/.linuxbrew && eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
test -r ~/.bash_profile && echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.bash_profile
echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.profile
Use Brew to install Flyway
brew install flyway
- Follow this guide
-
In the shell enter
cat <YOUR SSH KEY FILENAME>.pub
-
Copy the output (It should start with 'ssh-rsa' and end with the email address you entered)
-
Go to the keys section of GitHub settings - GitHub keys
-
Click the green 'New SSH key' button
-
Enter in a title
-
Paste the key into the text field and click 'Add SSH key'
-
In the terminal, navigate to a directory of your choice then enter the following
git clone [email protected]:hexly/admin.git
-
Repeat this replacing 'admin.git' with 'platform.git' and 'backoffice.git' respectively
-
Change to /platform and run
npm install npm run start
-
Repeat this for /backoffice
-
In a terminal run
docker exec -i platform_db_1 psql -h localhost -U dbadmin -p 5432 \ --dbname system <<EOF select i.id as identity_id, i.tenant_id, ic.id as credential_id, ic.username as credential_username, m.id as member_id, m.mrn, m.slug, m.name from iam.identity i left join iam.identity_member im on im.identity_id = i.id left join membership.member m on m.id = im.member_id left join iam.identity_credential ic on ic.identity_id = i.id order by random() limit 1 EOF
-
Open /backoffice/.env and add the following and save
VUE_APP_LANE=dev VUE_APP_TENANT_ID= <tenant_id from the previous console output> VUE_APP_API_ENDPOINT=http://localhost:3000 VUE_APP_GRAPHQL_ENDPOINT=http://localhost:3000
npm run local:up
npm run local:nuke
npm --tenant_id=<tenantId> run start