-
Open
.../mooving/mooving-dev-ops/firebase/config.json -
Set
version.updateUser.emailto the id of an admin firebase service account (e.g.[email protected]) -
Open
.../mooving/mooving-flow/k8s/environments/local/params.libsonnet -
Set
GCP_PROJECTto your GCP project id -
Set
GCP_BUCKET_PATHto a a GCS bucket path -
Set
end-ride/gcsBucketto a a GCS bucket path for invoices -
Set
end-ride/GCP_CREDENTIALS_FILE_NAMEunder to filename of a JSON service account file. -
Set
token-txn/ethNodeUrlto your eth wallet address. -
Open
.../mooving/mooving-api/k8s/environments/local/params.libsonnet -
Set
GCP_PROJECTunderowner-deployment,rider-deploymentanddav-rate-update-jobto your GCP project id. -
Set
MAILGUN_DOMAINunderowner-deploymentandrider-deploymentto your MAILGUN domain. -
Under
rider-deploymentsetBLUE_SNAP_USER_NAME,BLUE_SNAP_USER_NAME_TEST_USERto BlueSnap credentials -
Under
rider-deploymentsetIOS_APP_IDto your iOS app id. -
Under
rider-deploymentsetGCP_CREDENTIALS_FILE_NAMEto the name of the service account file. -
Under
rider-deploymentsetINVOICES_BUCKET_NAMEto a GCS Bucket name. -
Set
hostNameunderrider-ingress,owner-ingressandget-dav-city-ingressto your hostnames. -
Open
.../mooving/mooving-api/k8s/vendor/nginx/nginx.conf -
Replace
*.dav.citywith your host. -
Open
.../mooving/mooving-api/k8s/Makefile -
Set
<GCP_PROJECT>to your GCP project id. -
Open
.../mooving/mooving-api/src/common/controllers/AccountController.test.ts -
Set
TEST_USER_PHONEto some phone number. -
Set
TEST_USER_COUNTRY_CODEto some phone country code. -
Open
.../mooving/mooving-api/src/common/controllers/AccountController.ts -
Set
TEST_USER_PHONE_NUMBERto some phone number. -
Set
TEST_USER_COUNTRY_CODEto some phone country code. -
Open
/data/shahar/code/mooving/mooving-api/src/owner/TestUserApi.test.ts -
Set
TEST_USER_PHONE_NUMBERto some phone number. -
Set
REGULAR_USER_PHONE_NUMBERto some phone number. -
Open
.../mooving/mooving-api/src/rider/controllers/AccountController.ts -
Set
GCS_BUCKETto your GCS bucket. -
Open
.../mooving/mooving-api/src/rider/controllers/DeeplinksController.ts -
Set
<IOS_APP_ID>to your ios app id. -
Set
<HOSTNAME>to your hostname -
Set
<ITUNES_URL>to your itunes url -
Open
.../mooving/mooving-api/local-env.sh -
Set
TWILIO_API_KEY,BLUE_SNAP_USER_NAME,BLUE_SNAP_PASSWORD,BLUE_SNAP_USER_NAME_TEST_USERandBLUE_SNAP_PASSWORD_TEST_USER
cd ksonnet
make installsudo apt install parallelThen:
sudo apt install python-pip
pip install cqlsh{
"WantReportError": true,
"cpus": 6,
"dashboard": true,
"disk-size": "30GB",
"ingress": true,
"memory": 16000,
"profile": "minikube",
"vm-driver": "kvm2"
}- Edit
~/.cassandra/cqlshrcwith the following content:
[cql]
version=3.4.4
Setup NodeJS
Run:
minikube startEdit ./Makefile and replace secret values with real values (e.g. <<YOUR_CMC_API_KEY>>)
cd to dev-ops folder and run:
make secrets-setupAnd then run:
make deployEdit k8s/environments/local/params.libsonnet and replace secret values with real values (e.g. <<YOUR_CMC_API_KEY>>)
Edit Makefile and replace <<GCP_PROJECT_ID>> with your project id.
cd to flows folder and run:
make deployEdit k8s/environments/local/params.libsonnet and replace secret values with real values (e.g. <<YOUR_CMC_API_KEY>>)
Edit k8s/Makefile and replace secret values with real values (e.g. <<YOUR_CMC_API_KEY>>)
cd to api folder and run:
make deployUse either:
kubectl port-forward -n mooving svc/api-rider 3005:80Or:
kubectl port-forward -n mooving svc/api-owner 3005:80Edit local-env.sh and replace secret values with real values (e.g. <<YOUR_CMC_API_KEY>>)
cd to dev-ops folder and run:
make proxy-allNote: DO NOT CLOSE THE PROXY TERMINAL
cd to api folder and run:
npm iThen run either:
make start-riderOr:
make start-ownercd to 'app' folder and run
make start-android-emuThen run either:
make android-rider-localOr:
make android-owner-localcd to 'app' folder and run
Then run either:
make ios-riderOr:
make ios-owner