Skip to content

Latest commit

 

History

History
49 lines (30 loc) · 973 Bytes

README.md

File metadata and controls

49 lines (30 loc) · 973 Bytes

Hacker News Stories

Prerequisites

  • Node.js: Make sure Node.js is installed. You can download it from nodejs.org.
  • npm: npm is included with Node.js.

Installation

  1. Clone the Repository

    First, clone the repository to your local machine.

    git clone https://github.com/DawidKossowski/hackernews-stories.git
    cd hackernews-stories
  2. Install Dependencies

    Install the required dependencies using npm.

    npm install

Running the App

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.

Running Tests

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.