This round is to test your practical knowledge of using React in real world applications. The repo serves as a boilerplate for the React application you are going to build. The boilerplate is created using
create-react-app
.
Please read the below instructions carefully
- The repo is configured with ESlint to check the code quality of your javascript code.
- Failing the rules set by the above linters will prevent you from committing to this repo
- The Project will show some VS Code plugins as recommendations, that help you regarding these linter, ESLint, Editorconfig, etc. Install these plugins for better experience.
- Has bootstrap 5, react-router 6, many other libraries which you might need pre-installed.
- You can install other npm packages if you want
- Upon completing the problem, commit to your forked github repo and share the github repo url with us for review
- Writing inline CSS is discouraged, utilise bootstrap or write your custom CSS in separate CSS files or CSS modules.
- Create a
.env
by copying.env.example
which contains your environment variables - UI must be responsive
- Can use any online resources to solve the problem
- Must use
fetch API
to make API calls instead ofaxios
. UseJSON.stringify
to convert the body to string when doing any POST request. Don't pass any headers likeContent-Type
orAccept
in the request. - You have a total of 2 hrs to complete the task
Open it in CodeSandbox
- Once you're done with the problem statement, write codebuddy-react-interview-3 in the Repository name... input field and click on Create new repository on GitHub
- Share the GitHub repo link with us
Set it up in your local machine by following the below steps
Please read the below instructions carefully. Complete all the steps sequentially.
-
FORK this repo to your own GitHub account. DON'T CLONE THIS REPO. Fork button is the top right corner of the page.
-
Clone it to your local machine.
-
Open the project folder in VS Code
-
Install the recommended plugins
-
Install
node_modules
usingnpm
oryarn
.npm install
OR
yarn install
-
Create a
.env
by copying.env.example
at the root of the project. -
Run
npm run start
oryarn start
to run the project. -
Project will start at http://localhost:3000
If you are on Windows and getting lot of ESLint errors due end of line characters CRLF please run the below command to fix it.
npm run lint:fix
NOTE: If you face issue installing with
npm
trying usingyarn v1.22.*
If you are unable to push to your repo due to lint errors, please run
npm run lint
oryarn lint
to check the code quality. If unable to solve the lint errors, commit usinggit commit -m "YOUR COMMIT MESSAGE" --no-verify
and share the link with us for review.
In case of any queries feel free to contact us