Challenge task: build a trust builder for TrustPilot.
Demo app on Heroku :)
https://trust-builder.herokuapp.com/
Checking my portfolio and want something to click?
Open an issue on this repo requesting to activate the deployed app!
This project was bootstrapped with Create React App.
After ejecting, I added the required font-family and a sass loader for webpack.
I decided to go for React.js
because it is one of the major frameworks currently used.
This way, the widget could be easily delivered to partners as a dependency for their projects.
Tradeoff: yes, it does not work if the partner is not using react ;)
I am assuming that there is a minimum of 5 comments.
You need npm
, yarn
, and node
globally installed.
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.
To the default jest
testing env, I added enzyme
because it's awesome.
The project generates a folder called /coverage
which is .gitignore
d on this repo.
Run it on your local, and notice the 100% test coverage :)
Launches the test runner in the interactive watch mode.
I used the data from src/mocks/reviews.json to generate some snapshots.
If you change that, you need to tell jest
to update the snapshots.
Just press u
:)
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!
*Follow the commits.*