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!
- In your fork, create a PR from
feature/resource-page
to themain
branch (note: not to the CYF repo'smain
branch)- Use the content of
pull_request.md
on that feature branch as the description of the pull request
- Use the content of
- 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
- If you've made any database updates, run
- 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
- See guidance in
- Request a review of your review in the Slack channel
- 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'smain
branch) and request review in the Slack channel- Look at previous examples to get an idea of what a PR should look like
The prerequisites are:
- Node and NPM (see
engines
field inpackage.json
for compatible versions) - Docker Compose
If you're using dev containers, see .devcontainer/README.md
. Otherwise:
- Fork the repository to your account
- Un-tick "Copy the
main
branch only" to get all the branches in your fork
- Un-tick "Copy the
- Clone your fork
- Run
npm ci
to install the dependencies - Copy
e2e/.env
to.env
and update as needed - Run
npm run services:start
to start the services - Run
npm run migration -- up
to migrate the database - Run
npm run ship
to ensure that the tests pass - Start the app with
npm run dev
(dev mode) ornpm run serve
(prod mode) and visit:- UI: http://localhost:4201
- API docs: http://localhost:4201/docs
From there see .github/CONTRIBUTING.md
for details on recommended workflows.
- 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)