Skip to content

workco/code-assessment-web-ui

Repository files navigation

Code Assessment: Web Edition ⭑⭑

Instructions

1. Mirror the Repo

For your own privacy, please do not fork this repo! Instead, follow these instructions to mirror the repository to a new private repo on your account:

  1. Create a new private repo on your github (eg, my-assessment)

  2. On the command line, create a bare clone of our repo:

git clone --bare [email protected]:workco/code-assessment-web-ui.git
  1. Enter the temporary directory created by that command and push to your repo
cd code-assessment-web-ui.git
git push --mirror [email protected]:my-github-account/my-assessment.git
  1. In the working directory of your choice, clone the repo to start local development
git clone [email protected]:my-github-account/my-assessment

PS: Having trouble with these instructions? Reply to the talent team with your questions.

2. Implement Your Task(s)

Please refer to emailed instructions from the talent team as to which/how many tasks to work on. See the master task list here.

Create a new branch off of main for each task you work on (except #5).

Make one pull request for each task. Set this up like you would a real PR. Some features we’ll look for:

  • Informative, consistent commit message(s)
  • A detailed PR description. Explain the fixes or functionalities accomplished, any decisions you made along the way, or alternative implementations you may have considered or attempted. Feel free to add images and videos.
  • If applicable: Why did you choose this task?

You can merge the PR when you’re done. Implement your tasks in any order you'd like.

Other things we’re looking for in your work:

  • Code quality and consistency
  • New/updated Jest tests (when appropriate)
  • New/updated Storybook stories (when appropriate)

3. Submit Your Work

When you’re done with your work, please share your private repo with workco-talent and reply to your original email from the talent team to let us know you're done.

Available Scripts

In the project directory, you can run:

yarn

Install dependencies.

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

yarn test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

yarn test:coverage

Runs tests (out of watch mode) and create a coverage report.

yarn build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.

yarn lint

Lint all .ts files according to ESLint config. Run yarn lint:fix to automatically apply fixes.

yarn storybook

Start a local Storybook server to browse component stories.

About the Code

This project was bootstrapped with Create React App.

React

We're using React, one of our favorite front-end libraries!

Sass & Fonts

  • Fonts are provided by Google Fonts.
  • Styling uses CSS modules and Sass. This article contains a good writeup of how the two work together.

Storybook

We use Storybook on many of our projects to provide a living style guide of our app's components. This project includes some basic stories and the following addons:

Jest

Create React App comes with Jest built-in. We've written a few tests and included the following dependencies to support them:

ESLint

To catch errors and enforce consistency, we're using ESLint in two forms:

For more information, read about ESLint in the Create React App docs.

NVM

Use nvm to ensure the correct Node.js version (specified in .nvmrc)

nvm use

Additionally, you may need to run nvm install if the specified version is not yet installed.

Design/Browser Info

You can find the Figma file for this project here: https://www.figma.com/file/1PbluBCo3DdjdSeMwb6i0p/Code-Assessment-Web. The "App" designs are for a mobile assessment - please disregard.

Please see package.json for a list of supported browsers.

Note: The UI is optimized for widths of greater than or equal to 375px.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •