Skip to content

sparkbox/apprentices-page-next

Repository files navigation

Sparkbox Apprentice Page

Getting Started

  • run the following in your terminal: git clone https://github.com/sparkbox/apprentices-page-next.git
Installing Deps:
  • npm install
Running the Project:
  • npm run dev
Running the linter:
  • npm run lint
Running Tests with watch mode:
  • npm test
Runnnig tests without watch mode:
  • npm test:ci

Technical Overview

Tech Stack:

CI/CD:

Contributing

Git:
  • When you want to make a contribution please follow the Sparkbox git process for naming branches, writing commit messages, and rebasing before submitting PRs.
Updating Apprentices Data:
Images
  • All image files should be added to /public/apprentices with the file name being [ApprenticeName].png
Apprentice Data
  • To add/change the current apprentices or previous apprentices data navigate to /data folder and find the apprentices.json file

  • Add to and/or adjust the data, see below how the data for each group is structured:

    • Current Apprentices:
    "currentApprentices": {
      "version": "[Version Number]",
      "apprentices": [
        ...,
        {
          "name": "[Apprentice Name]",
          "image": "/apprentices/[Name].png",
          /* Links are optional and can be any link the apprentice provides as long as it follows 
          the structure of the objects below: */
          "links": [
            { "href": "https://www.personalportfolio.com", "text": "Personal" },
            { "href": "https://www.linkedin.com/", "text": "Linkedin" },
            { "href": "https://www.github.com/", "text": "Github" },
          ],
        },
      ],
    },
    • Previous Apprentices:
    "previousApprentices": [
      ...,
      {
        "version": "[Version Number]",
        "apprentices": [
          ...,
          {
            "name": "[Apprentice Name]",
            /* Status is optional and states the apprentice employment status with Sparkbox
            and can be one of the following values, if the apprentice was never an employee omit
            status entirely: */
            "status": [ "current" || "previous" ]
          }
        ]
      }
    ]
Updating Snapshot:
  • If any markup is changed the snapshot will need to be updated to represent those changes in the test
  • run npm run test:snapshot:update to update the snapshot
Accessing Netlify:
  • Use your Sparkbox affiliated 1Password account to get access to the Sparkbox developer account in Netlify.
  • There you can make any necessary changes to the Netlify deploy such as editing the name of the url, the automatic deploy process or evironmental variables.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published