Skip to content

Final project for ECE 382V Blockchain and Smart Contracts

License

Notifications You must be signed in to change notification settings

juanjoneri/bc-fall22

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lightning Articles

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

Future Features

In the future we would like to add the following features to Lightning Articles:

  1. Ability for publishers to cash out the revenue generated by their articles into their own private wallets
  2. Rich articles: allow publishers to add pictures and markup to their articles. Currently articles are just text files
  3. Open our site to the public, so that actual users can start to publish and read articles from around the web!

How to setup & use demo

  1. Install Python 3
  2. Download the repo
  3. Change directory to bc-fall22/nyt
  4. Run the server: python3 manage.py runserver
  5. Go to local host localhost:8000
  6. Click on publish
  7. Then you'll be prompted to sign-up, create an account
  8. Create an artcile
  9. The article will be behind a paywall. You can open cash app to pay for the Ligtning invoice in the QR code.
  10. Refresh page and you should see article.

Helpful Links

  1. Django [https://docs.djangoproject.com/en/4.1/]
  2. LN Bits [https://legend.lnbits.co/]

About

Final project for ECE 382V Blockchain and Smart Contracts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published