A simple next.js web app that displays trending repositories from GitHub over the last 7 days. It also gives users the option to favourite any repositories, this is stored in localstorage so will remain until the user clears their storage.
To run the development environment do the following:
- Ensure you are using node LTS
- Open the directory in your preferred terminal
- Run
yarn
ornpm i
- Run
yarn dev
ornpm run dev
To build and serve the project do the following:
- Ensure you are using node LTS
- Open the directory in your preferred terminal
- Run
yarn
ornpm i
- Run
yarn build
ornpm run build
- Run
yarn start
ornpm run start
Tests are crested using jest
and react-testing-library
in order to run all tests use command yarn test
or npm run test
This web application is deployed using vercel, you can see the latest deployed version here: trending-repositories.vercel.app.