Fleet Commons

Requirements:

  • Node JS 10+

  • NPM/Yarn

  • Firebase CLI

  • Firebase Console Access

  • Bitbucket Access

  • beta.env, staging.env, and production.env (ask your senior developer)

  1. Set up SSH

  • If you haven't already, please proceed to Bitbucket. Access the provided link for setting up SSH on Bitbucket.

  1. Clone Repository

a. Using SSH

git clone git@bitbucket.org:fleetph/fleet_commons.git

b. If you are having difficulties setting up the SSH you can use HTTPS

Step 1: Go to Bitbucket Repository

commonsDocu.jpeg

 

Step 2: Copy git clone URL

htts2.png

 

Please disregard the crossed-out word in the URL as it will vary depending on the email you use to log in.

  1. Navigate to the project folder and integrate the .env files into your project. Refer to the image provided below:

  • add image vs code env

If you haven't acquired the .env file yet, please contact your team leader or go to this Link.

  1. Enter into the Fleet directory

cd fleetph
  1. Install dependencies

yarn install
  1. Deployment

  1. Make sure you have at least editor access to the firebase console. Check your permission here:
    https://console.firebase.google.com/u/0/project/fleet-ph/settings/iam

  2. Move to any branch

  3. Move to functions folder

  4. Set environment to deploy

  5. deploy chosen functions

    Or

  6. Let deployment finish! Congrats on deployment! Check your deployment status by checking log viewer.
    https://console.cloud.google.com/logs/query?project=fleet-dev-ph

  1. Make sure you have at least editor access to the firebase console. Check your permission here:
    https://console.firebase.google.com/u/0/project/fleet-ph/settings/iam

  2. Move to any branch

  3. Move to functions folder

  4. Set environment to deploy

  5. deploy chosen functions

     

  6. Let deployment finish! Congrats on deployment! Check your deployment status by checking log viewer.
    https://console.cloud.google.com/logs/query?project=fleet-staging-2333a

  1. Make sure you have at least editor access to the firebase console. Check your permission here:
    https://console.firebase.google.com/u/0/project/fleet-ph/settings/iam

  2. Move to release branch. Only deploy from release branch for production

  1. Move to functions folder then clear build

  1. Set environment to deploy

  1. Set config

  1. deploy chosen functions

  1. Let deployment finish! Congrats on deployment! Check your deployment status by checking log viewer.
    https://console.cloud.google.com/logs/query?project=fleet-ph

Â