hacknio is a lightweight Hacker News client created with React and Next.js, designed to deliver a fast and responsive user experience. You can navigate between pages using the arrow keys for added convenience!
- Frontend: React, Next.js, Tailwind CSS
- API: Hacker News API
To run the project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/ni5arga/hacknio.git cd hacknio
-
Install dependencies:
npm install
-
Run the development server:
npm run dev
-
Open your browser and navigate to:
http://localhost:3000
To run hacknio using Docker:
-
Build and start the container: First, cd into the top directory of the
hacknio
repo.Then do...
docker compose up -d --build
-
Access the application: Open your browser and navigate to
http://localhost:3000
-
Stop the container:
docker compose down
Note: The default port is 3000. To use a different port, set the HOST_PORT
environment variable before running docker compose or include the environment variable in an adjacent .env
file.
Contributions are welcome! If you have suggestions or issues, please create an issue in the GitHub repository.
This project is licensed under the MIT License - see the LICENSE file for details.
- Hacker News API for providing the data.