This single-page React web app allows for navigation of the r/pics subreddit.
-
Clone the repo
-
Install dependencies
npm install
-
Start the app on default port 3000
npm start
Tests are written using Jest and React Testing Library. API calls are mocked using the Mock Service Worker library.
-
To run tests in watch mode:
npm test
-
To run tests in watch mode with coverage:
npm test -- --coverage
This project uses Github Actions for CI/CD. The worfklow will:
- run all tests
- send coverage metrics to Codecov
- build the app
- Fork and clone the repo.
- Follow the setup steps outlined above.
- Make your changes, ensuring that code coverage remains at 100%.
- Open a pull request documenting your changes. Please ensure that that GitHub Actions workflow suceeds.
- Production: https://pics-browser.herokuapp.com/
This repo's main
branch automatically deploys to Heroku after the GitHub Actions workflow succeeds.