A basic phone catalogue component made with React, Redux and Bootstrap-React.
- clone the git repository to your local machine.
- run
npm install
to download all necessary dependencies. - run
npm run dev
to run a local version of the website on your machine. - navigate to 'localhost:3000' to view the app.
- run
cd client && npm run test
to run the unit tests.
The backend is a simple node/express server which runs on port 5000. It has only two API end points which simulate async behaviour (./phones & ./phonesErr)
The frontend uses Redux to manage simple state changes.
General functionality (popup and loading) are passed to other components as HOCs.
React-bootstrap was used for general stylings.
All components have associated unit tests using Mocha, Enzyme and Chai. This website was developed using TDD principles.