This is a Next.js application that displays the top stories from HackerNews and allows users to submit feedback.
- Fetches top stories from the HackerNews API.
- Displays details of each story on a separate page.
- Contains a feedback form with validation.
- Clone the repository:
git clone https://github.com/twoj_nazwa_uzytkownika/hackernews-top-stories.git
- Navigate to the project directory:
cd hackernews-top-stories - Install dependencies:
npm install
- Run the development server:
npm run dev
- Open the application in your browser:
http://localhost:3000
The feedback form collects name, email, and feedback. Form validation ensures all fields are filled out and the email is in the correct format. Upon submission, the form clears, and data is logged to the server-side console.
- Node.js
- npm