An "easily" self hostable hacker-news clone
Our main goal was to build a lightweight hacker-news clone people could use for company-internal link aggregation.
We also were using this project as a playground for trying out technologies and design ideas that we haven't tried out in the wild.
The current example installation of hrefs is internal to members of the code.berlin Google Organisation and can be found at https://hrefs.withu8.com. It is filled with ~25.000 randomly generated links and ~16.000.000 votes. It is running with very limited resources inside @giesf's personal Kubernetes cluster and can display a bit of latency when the materialized views are refreshing in the background as the database has way to little cpus and ram because we did not have budget to run a production-level DB for this. We have however sucessfully tested the DB with an appropiate amount of resources.
- OpenID Connect Integration
- Link-sharing
- Up & Down voting
- Simple comments
- Hot (top of last 7 days), new and top of all time post views
- Custom displaynames that are seperate from the OpenID Connect Username
- My posts view
- Search
- Top of the year / Top of the month views
We recommend using codespaces. If you are using codespaces you need to add your codespace's URL to the list of authorized redirect domains here
cd backend
# Install dependencies
yarn install
# Set up environment
cp .env.example .env
# Run DB
docker compose up db -d
# Run
yarn run start:devcd web-client
# Install dependencies
yarn install
# Set up environment
cp .env.example .env
# Run
yarn run start:dev