Welcome! Thanks for your interest in joining the frontend team at Sure. As part of our interview process, you'll be working through a series of technical challenges outlined in this app.
Add this folder to a new repository on GitHub and file a Pull Request capturing the updates you make to complete the assignment.
Before beginning the assignment, you'll need to add this folder to a new repository on GitHub in its initial unaltered state. That way, you can provide a comparison of the completed assignment against the initial state of the repo via a Pull Request. Once you've initialized the repo, you can begin the assignment.
The assignment instructions are accessible in the app itself, so to begin, you'll need to:
yarn install
to install dependencies.yarn start
to run the app locally.- Once the development server is running, you can open http://localhost:3000 to view it in the browser.
- You can view the instructions in the app by clicking the "View challenges" button.
- Create a pull request comparing your work to this folder's initial state (See "Getting Started" above).
- Respond to the email from your recruiter with a link to the Pull Request on GitHub. The repo should be public so that the Pull Request is accessible for review.
If you have any questions, don't hesitate to reach out to your recruiting contact. Good luck!
GET https://fe-interview-technical-challenge-api-git-main-sure.vercel.app/api/policyholders
{
policyHolders: [
{
"name": string,
"age": number,
"address": {
"line1": string,
"line2": string | undefined,
"city": string,
"state": string,
"postalCode": string,
},
"phoneNumber": string,
"isPrimary": boolean,
}
]
}
URL:
POST https://fe-interview-technical-challenge-api-git-main-sure.vercel.app/api/policyholders
Body example:
{
"name": string,
"age": number,
"address": {
"line1": string,
"line2": string | undefined,
"city": string,
"state": string
"postalCode": string,
},
"phoneNumber": string,
}
{
policyHolders: [
{
"name": string,
"age": number,
"address": {
"line1": string,
"line2": string | undefined,
"city": string,
"state": string,
"postalCode": string,
},
"phoneNumber": string,
"isPrimary": boolean,
},
{
"name": string,
"age": number,
"address": {
"line1": string,
"line2": string | undefined,
"city": string,
"state": string,
"postalCode": string,
},
"phoneNumber": string,
"isPrimary": boolean,
}
]
}
This project was bootstrapped with Create React App.
In the project directory, you can run:
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.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
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.
Your app is ready to be deployed!
See the section about deployment for more information.
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.