All Projects → stackernews → stacker.news

stackernews / stacker.news

Licence: MIT license
It's like Hacker News but we pay you Bitcoin.

Programming Languages

javascript
184084 projects - #8 most used programming language
PLpgSQL
1095 projects
CSS
56736 projects
SCSS
7915 projects
shell
77523 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to stacker.news

Fleetx
Paddle Distributed Training Extended. 飞桨分布式训练扩展包
Stars: ✭ 196 (+0%)
Mutual labels:  lightning
opendaylight-sample-apps
Sample applications for use with OpenDaylight (https://www.opendaylight.org/)
Stars: ✭ 56 (-71.43%)
Mutual labels:  next
react-redux-nextjs-material-ui-pwa-starter
No description or website provided.
Stars: ✭ 33 (-83.16%)
Mutual labels:  next
Lndhub
Wrapper for Lightning Network Daemon. It provides separate accounts and trust minimization for end users
Stars: ✭ 203 (+3.57%)
Mutual labels:  lightning
next-ts-starter
A Next.JS powered Typescript starter with styled components, styled-system, framer motion, jest and cypress
Stars: ✭ 27 (-86.22%)
Mutual labels:  next
next-all-in
🗃⚛️ Next starter for creating any type of site
Stars: ✭ 29 (-85.2%)
Mutual labels:  next
Ln Service
Node.js interface to LND
Stars: ✭ 191 (-2.55%)
Mutual labels:  lightning
next-boilerplate
☶ The easiest way to create a Next app by running one command.
Stars: ✭ 65 (-66.84%)
Mutual labels:  next
id3c
Data logistics system enabling real-time pathogen surveillance. Built for the Seattle Flu Study.
Stars: ✭ 21 (-89.29%)
Mutual labels:  plpgsql
next-banner
🖼️ Generate Open Graph images for Next.js on build
Stars: ✭ 45 (-77.04%)
Mutual labels:  next
Spark Wallet
⚡️ A minimalistic wallet GUI for c-lightning, accessible over the web or through mobile and desktop apps.
Stars: ✭ 215 (+9.69%)
Mutual labels:  lightning
bitcoin-spring-boot-starter
Write enterprise Bitcoin applications with Spring Boot. Starter projects with multiple Bitcoin related modules that you can include in your application.
Stars: ✭ 44 (-77.55%)
Mutual labels:  lightning
nuro.dev
🌿 Personal Portfolio
Stars: ✭ 260 (+32.65%)
Mutual labels:  next
Lightning
Lightning is a base distribution for fast and feature-rich Drupal. Please submit issues to our Drupal.Org queue here: https://www.drupal.org/project/issues/lightning
Stars: ✭ 196 (+0%)
Mutual labels:  lightning
hashids.sql
PL/pgSQL implementation of hashids library
Stars: ✭ 40 (-79.59%)
Mutual labels:  plpgsql
Haoide
Stop upgrade, most of features were delivered in https://github.com/xjsender/haoide-vscode
Stars: ✭ 194 (-1.02%)
Mutual labels:  lightning
react-redux-nextjs-bootstrap-starter
next + react + redux + bootstrap starter
Stars: ✭ 24 (-87.76%)
Mutual labels:  next
lntop
⚡ LN terminal dashboard 📊
Stars: ✭ 170 (-13.27%)
Mutual labels:  lightning
dhan-gaadi
A complete online bus reservation system (Node, React, Mongo, NextJS, ReactNative)
Stars: ✭ 207 (+5.61%)
Mutual labels:  next
lightning-jukebox
A Lightning powered Jukebox ⚡ Pay with Bitcoin to choose your music.
Stars: ✭ 29 (-85.2%)
Mutual labels:  lightning

stacker.news

Stacker News is like Hacker News but we pay you Bitcoin. We use Bitcoin and the Lightning Network to provide Sybil resistance and any karma earned is withdrawable as Bitcoin. Next year we plan to begin decentralizing SN on an open peer to peer network.

local development

  1. Install docker-compose and deps if you don't already have it installed
  2. git clone [email protected]:stackernews/stacker.news.git sn && cd sn
  3. docker-compose up --build

You should then be able to access the site at localhost:3000 and any changes you make will hot reload. If you want to login locally or use lnd you'll need to modify .env.sample appropriately. If you have trouble please open an issue so I can help and update the README for everyone else.

stack

The site is written in javascript using Next.js, a React framework. The backend API is provided via graphql. The database is postgresql modelled with prisma. The job queue is also maintained in postgresql. We use lnd for the lightning node which we connect to through a tor http tunnel. A customized Bootstrap theme is used for styling.

processes

There are two. 1. the web app and 2. the worker, which dequeues jobs sent to it by the web app, e.g. polling lnd for invoice/payment status

wallet transaction safety

To ensure user balances are kept sane, all wallet updates are run in serializable transactions at the database level. Because prisma has relatively poor support for transactions all wallet touching code is written in plpgsql stored procedures and can be found in the prisma/migrations folder.

code

The code is linted with standardjs.

contributing

Pull requests are welcome. Please submit feature requests and bug reports through issues.

license

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].