Song Turbo Developer Certification - Foundations
Part 1: Setup and GitHub
This task deals with setting up the Song Turbo project locally on your machine. It should be a relatively simple task, but it's important to get the right setup.
It is highly recommended to use VS Code (opens in a new tab) as a development environment, since it provides features and extensions that are used in this certification. It allows all Song Turbo developers to set a common standard practices.
Concepts to be grasped
- Basics of Git and GitHub
- Basics of monorepo and turborepo
Reading material
- NodeJS (opens in a new tab)
- yarn 1 (opens in a new tab)
- Git (opens in a new tab)
- GitHub PR (opens in a new tab)
- Monorepo (opens in a new tab) and Turborepo (opens in a new tab)
- Naming Conventions
Tasks
- Install NodeJS LTS version. Currently it is v16. Then globally install
yarnpackage manager. - Clone the repository from GitHub (opens in a new tab) locally on your machine.
- Eject to a new project using the script. Choose type 3. For this test give it the namespace ´turbo-blog`. A namespace can by anything you like, just make it short, lower case and no spaces. See docs for instructions.
- Install the package dependencies with
yarnpackage manager. This might take a while so go on with step 5. - Go to Github and create a new private repoitory on your own Github account. You can call it what you want.
- Invite a contributor to this repository on Github. Connect for example
bjornallvin. This is how the certification is evaluated later. You can do this now or in a later stage. - Initialise git and commit the project files. Check the README.md in the root of your ejected project for instructions.
- Connect your project to your remote github repository and publish the main branch. Check the README.md in the root of your ejected project for instructions.
- Create and publish a new git-branch with your Accenture Enterprise ID using naming-pattern
certification/<accenture.eid>. Eg.certification/bjorn.allvin. - Create a Pull request (PR) in Github with the new branch. Before you can do this you will need to commit some change to your new branch.
- Set the invited contributor as reviewer of this PR.
This PR will be used later to measure the completion of the certification. Do not delete or merge the PR as all future changes/pushes will go into this branch.
Verification
To verify the setup, in the terminal, run the following command:
yarn dev:webThe server should start and you should be able to access the application at localhost:3000 (opens in a new tab) in your browser.
Review Questions
What is a monorepo and what pros and cons does it have?
What is a PR and what are the characteristics of a good PR you think?