Skip to content

SSWConsulting/SSW.People

Repository files navigation

SSW People

This is a Gatsby generated website, leveraging data from SSW.People.Profiles (GitHub) and SSW CRM. Pages are automatically re-generated and published to our SSW website when a profile markdown page is updated.

Learn more on Adam's Blog - Introducing SSW People!

SSW People is the SSW Employee Pages V2 - No more SharePoint!

This is a Gatsby generated site pulling data from:

Getting Started

Required Tools

Getting ready for development

  • Clone the repo from https://github.com/SSWConsulting/SSW.People

  • Run yarn (or npm install) to install packages

  • Create environment files (.env.development and .env.production) and fill out the values for the following keys:

    GOOGLE_ANALYTICS=
    RECAPTCHA_KEY=
    DATA_API_URL=FALSE
    DATA_API_AUTHORIZATION=
    DATA_API_TENANT=
    YOUTUBE_API_KEY=
    VERSION_DEPLOYED=#{VERSION_DEPLOYED}
    CHINA_BUILD=FALSE
    EVENTS_API=https://www.ssw.com.au/ssw/SharePointEventsService.aspx
    CONTACT_API=/ssw/api/crm/createlead
    CRM_APP_ID=
    CRM_TENANT=
    CRM_TENANT_ID=
    CRM_APP_SECRET=
    CRM_SCOPE=
    CRM_VIEW_CURRENT=
    CRM_VIEW_PAST=
    APPINSIGHTS_INSTRUMENTATIONKEY=#{APPINSIGHTS_INSTRUMENTATIONKEY}
    REWRITES_JSON_URL=FALSE

Development

  1. Branch off main for your PBI
  2. Run yarn build (or npm run-script build) (.env.production is required for this step)
  3. Do your work
  4. Run the site in development mode by yarn develop (or npm run-script develop) (.env.development is required for this step)
  5. Commit code and push
  6. Raise a PR
  7. Get it merged!

Definition of Done

  • Code Compiles
  • Check the Acceptance Criteria.
  • Code is squash-merged to main via a pull request that was approved by a 2nd developer.
  • Another team member agrees it’s ready for Production.
  • Pushed to Production.
  • Use @Mention (OR Send email) to notify Product Owner/PBI stakeholder that PBI is done (be sure to include screenshots/done video as proof)

<As per rule: Done - Do you go beyond 'Done' and follow a 'Definition of Done'?>

Branches

  • Branching strategy is based off Release Flow
  • Main is the main 'dev' branch
  • Release/xx is the 'production' one (where xx is incremented from the previous release)
  • Always create a new branch for your PBIs
  • Always delete your branch once your PR has been merged

Builds

Note: people.ssw.com.au redirects to https://www.ssw.com.au/people

People profiles repository

People profiles repository lives here: https://github.com/SSWConsulting/SSW.People.Profiles

Merging changes to main on this repo will trigger:

Next Step: Wiki >


SSW.People YouTube Channel