Welcome to hacker news, a little frontend project with React, TypeScript, CSS, consuming the API of hacker news trough Fetch.
We use Jest and @testing-library for make unit tests to some components
The first that you may want to do is install all the dependencies to configure your environment, so please run the next command:
npm install
Once you have installed all the necessary dependencies you will be able to run the next commands:
- Run a development environment:
npm run dev
- Build the project:
npm run build
- Test the project:
npm run test
- See the tests coverage of the project:
npx jest --coverage
If you want to run the production version, feel free to use any server to run it, I recommend you use the next command to see how works the static files:
npx serve
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.