Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Example app for tech products interview experiment

License

Notifications You must be signed in to change notification settings

CodeYourFuture/tech-products-demo

Repository files navigation

Tech Products Demo

Node.js CI

This is a "work sample simulation", an experience of what it's like to work in one of our teams. This gives you the opportunity to both demonstrate the skills you'd bring to the role and decide whether the role is something you'd enjoy doing.

Follow the instructions below to create a fork, clone it and get your local dev environment set up.

There are two tasks, corresponding to the main tasks developers in our teams carry out; you may do them in either order. If you have any problems, feel free to ask questions in #join-cyf-tech-products; that's also part of the simulation!

Review a PR

  • In your fork, create a PR from feature/resource-page to the main branch (note: not to the CYF repo's main branch)
    • Use the content of pull_request.md on that feature branch as the description of the pull request
  • Check out that branch locally so you can run the scripts and try out the functionality
    • If you've made any database updates, run npm run migration -- down to roll them back before checking out the branch
    • If you've made any dependency updates, re-run npm ci after checking out the branch
  • Carry out a review of the pull request in GitHub, adding comments to the implementation and deciding whether it's ready to merge ("Approve") or not ("Request changes")
    • See guidance in .github/REVIEWING.md
    • Note: as the main branch is maintained some conflicts/out of date warnings may appear in GitHub, you can ignore these as out-of-scope for the review
  • Request a review of your review in the Slack channel

Create a PR

  • Look through the backlog and select an un-blocked open feature to complete
    • Think about how you can best demonstrate your skills - does the feature require shiny new UI, updates to the backend logic, or a mix of both?
  • Implement the feature you've selected, following the guidance in .github/CONTRIBUTING.md
    • Remember this is a simulation of working in the team - try to follow the patterns already established in the codebase
  • Open a PR to the CYF repo's main branch (note: not your fork's main branch) and request review in the Slack channel

Dev Setup

The prerequisites are:

  • Node and NPM (see engines field in package.json for compatible versions)
  • Docker Compose

If you're using dev containers, see .devcontainer/README.md. Otherwise:

  1. Fork the repository to your account
    • Un-tick "Copy the main branch only" to get all the branches in your fork
  2. Clone your fork
  3. Run npm ci to install the dependencies
  4. Copy e2e/.env to .env and update as needed
  5. Run npm run services:start to start the services
  6. Run npm run migration -- up to migrate the database
  7. Run npm run ship to ensure that the tests pass
  8. Start the app with npm run dev (dev mode) or npm run serve (prod mode) and visit:

From there see .github/CONTRIBUTING.md for details on recommended workflows.

Ports used

  • 4201: client application (Vite in dev mode, Express in production mode)
  • 4202: Express server (dev mode only)
  • 4211: Postgres
  • 4212: GitStub (mock GitHub OAuth/API)

About

Example app for tech products interview experiment

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Contributors 3

  •  
  •  
  •  

Languages