Final project for ECE 382V Blockchain and Smart Contracts
Juan, Sammy, and Holden
Slides: https://docs.google.com/presentation/d/1V3l3CQlM3oClyxC-cVng1uXMz3BYPvCRp4wcfY6ivys/edit?usp=sharing
Lightning Articles is a website that allows users to post articles, and readers to pay Bitcoin using the lightning network to unlock and read those articles. We used the LN Bits APIs and packages to setup a paywall. The backend is written in Python 3 using the Django framework. The database is SQL Lite. That is where we store our data including articles and user information. Users can sign in an out in order to read articles that they previously paid for. The main screen shows a view of all articles sorted by "revenue", where the most popular articles and raise to the top of the charts.
Description | Image |
---|---|
Home screen | |
Sign in screen | |
Sign up screen | |
Article screen | |
Invoice screen | |
Publish screen |
In the future we would like to add the following features to Lightning Articles:
- Ability for publishers to cash out the revenue generated by their articles into their own private wallets
- Rich articles: allow publishers to add pictures and markup to their articles. Currently articles are just text files
- Open our site to the public, so that actual users can start to publish and read articles from around the web!
- Install Python 3
- Download the repo
- Change directory to
bc-fall22/nyt
- Run the server:
python3 manage.py runserver
- Go to local host
localhost:8000
- Click on
publish
- Then you'll be prompted to sign-up, create an account
- Create an artcile
- The article will be behind a paywall. You can open cash app to pay for the Ligtning invoice in the QR code.
- Refresh page and you should see article.
- Django [https://docs.djangoproject.com/en/4.1/]
- LN Bits [https://legend.lnbits.co/]