Boilerplate for a react code challenge for interviews
Since companies started to send coding challenge as a measure to examine cadidates for front-end developers, I found myself createing over and over some boilerplate project, and decided to create it as an open source repo to be used for future code challenges, and share it with others.
Express
server to server the app, with some placeholder for APIWebpack
to bundle the client code, this is being done on the server side.React
&Redux
on the front endstyled-components
for styling the app.jest
for unit testingeslint
for linting the code.
npm i && npm start
and then open http://localhost:8080
Using express, the server is doing the followings:
- Running the webpack
- Serving static file in the
static
folder, there is a demo static file athttp://localhost:8080/static/react-logo.png
- API endpoint placeholder. there is a demo API at
http://localhost:8080/api/version
The client start point is at src/client/app/index.js
where the react and redux is created and initialized.
In case you need to fetch data from a server there is the src/client/api
which exports the apiCall
method.