stacker.news/README.md

20 lines
1.2 KiB
Markdown
Raw Normal View History

2021-06-28 23:20:52 +00:00
# stacker.news
2021-06-28 23:24:36 +00:00
[Stacker News](https://stacker.news) is a Lightning powered Bitcoin news site modelled after Hacker News (which is modelled after Reddit). The intent is to create a better place to discuss Bitcoin.
2021-03-22 20:36:10 +00:00
2021-06-28 23:20:52 +00:00
# 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. We use lnd for the lightning node which we connect to through a tor http tunnel. A customized Bootstrap theme is used for styling.
2021-03-22 20:36:10 +00:00
2021-06-28 23:20:52 +00:00
# processes
There are two. 1. the web app and 2. walletd, which checks and polls lnd for all pending invoice/withdrawl statuses in case the web process dies.
2021-03-22 20:36:10 +00:00
2021-06-28 23:20:52 +00:00
# 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.
2021-03-22 20:36:10 +00:00
2021-06-28 23:20:52 +00:00
# code
The code is linted with standardjs.
2021-03-22 20:36:10 +00:00
2021-06-28 23:20:52 +00:00
# contributing
Pull requests are welcome. Please submit feature requests and bug reports through issues.
2021-03-22 20:36:10 +00:00
2021-06-28 23:20:52 +00:00
# license
[MIT](https://choosealicense.com/licenses/mit/)