Check the result - #2
Hello there!
If you're reading this, it means you're now at the coding exercise step of the engineering hiring process WOOT WOOT. We're really happy that you made it here and super appreciative of your time!
In this exercise you're asked to implement some features in an existing React app, using whatever extra tools you want.
If you have any questions, don't hesitate to create an issue in this repo or reach out directly to [email protected].
- It should be production-ready code - the code will show us how you ship things to production and be a mirror of your craft.
- Take whatever time you need - we won't look at start/end dates, you have a life besides this and we respect that!
This is a basic CRUD (without the delete) of people. You'll implement an app with 3 pages:
- People list - Display a list of people and their attributes. It allows searching by employee name.
- Create member - A form to create a new team member;
- Edit team member - A form to edit an existing team member;
For further details, follow the design specs in the Figma file shared with you by e-mail. https://www.figma.com/file/9rg0ZaQYfLailCQ7IV4DJd/FE-code-exercise-(shtbik)
- How you work with HTML, CSS, and JavaScript in a React app;
- How you reproduce the provided design;
- How you structure your codebase and how well it reads;
- How well it works;
- How you write tests. Tests take time, so you just need to test:
- Button component: Some tests are already done, you will need to complete them.
- People list page: Write the needed tests.
- Edit or Create member: Pick one of the flows. You are free to choose between Testing Library, Cypress or any other testing tool/approach.
- A CSS library like Bootstrap, etc. - we're interested in how you structure your CSS code to achieve something.
- As little as possible, there's no time-frame or deadline for this but we want to be respectful of your time.
- Complete the "Implementation Details" section at the bottom of this README.
- Open a Pull Request in this repo and send the link to [email protected].
- You can also send some feedback about this exercise. Was it too short/big? Boring? Let us know!
- Node >= 8.10
- NPM >= 5.6
- Git
- Clone the project repository
- Install the dependencies
npm install
- This project was bootstrapped with Create React App.
- JSON server will give you a fake but realistic REST API using the static
src/server/db.json
file created after runningnpm install
. If you make POST, PUT, PATCH or DELETE requests, changes will be automatically saved todb.json
.
- React (Create React App)
- CSS with Styled-Components
- Tests with React Testing Library
src/
components # Some components already built.
server # The fake API mentioned above.
theme # Some base styles used across the project.
Playground.js # A simple showcase of the existing components.
Once again, you have total freedom to modify this codebase and use whatever tools you want.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
JSON server will run concurrently in watch mode on port 4000 - http://localhost:4000.
Launches the test runner in the interactive watch mode.
Read the section about running tests for more information.
Resets db.json
to the original initial data (db.base.json
).
This script runs automatically after npm install
.
GET http://localhost:4000/people
: get the full list of peopleGET http://localhost:4000/people/{id}
: get the person with id{id}
GET http://localhost:4000/people?name_like={substring}
: search for people where the name includes{substring}
POST http://localhost:4000/people
: create a new personPATCH http://localhost:4000/people/{id}
: update the person with id{id}
This section is for you to fill in with any decisions you made that may be relevant. You can also change this README to fit your needs.