- Node.js: Make sure Node.js is installed. You can download it from nodejs.org.
- npm: npm is included with Node.js.
-
Clone the Repository
First, clone the repository to your local machine.
git clone https://github.com/DawidKossowski/hackernews-stories.git cd hackernews-stories
-
Install Dependencies
Install the required dependencies using npm.
npm install
To start the development server and view the application, use the following command:
npm run dev
After that, the application will be accessible at http://localhost:3000
.
To run the tests for this application, follow these steps:
Run Unit Tests
Execute the unit tests using Jest.
npm test
This will run all the unit tests in the __tests__
directory and output the results.