Skip to content

bitkarrot/laisee-frontpage

Repository files navigation

Laisee.org

🧧Little red envelopes with money in them: ⚡Lightning Laisee.

What is a Laisee?

Laisee are little red envelopes with money. Lightning Laisee contain Bitcoin on the Lightning Network. They can exist in both physical and digital form. You can send a Lightning Laisee to anyone in the world.

Built with A statically generated blog example using Next.js and Markdown

This example showcases Next.js's Static Generation feature using Markdown files as the data source.

The blog posts are stored in /_posts as Markdown files with front matter support. Adding a new Markdown file in there will create a new blog post.

To create the blog posts we use remark and remark-html to convert the Markdown files into an HTML string, and then send it down as a prop to the page. The metadata of every post is handled by gray-matter and also sent in props to the page.

Lightning Addresses

Lightning addresses are dynamically added by external script to public/.well-known/lnurlp directory

An example address: user@laisee.org

PLEASE BE AWARE THAT ANY CHANGES TO FILES IN THIS DIRECTORY COULD ADVERSELY AFFECT TG USER ACCOUNTS, AS DATA IS NOT SYNCED WITH LNBITS OR POSTGRES

Demo

https://laisee-frontpage.vercel.app/

How to run

git clone https://github.com/bitkarrot/laisee-frontpage
cd laisee-frontpage
npm i
npm run dev 

Your blog should be up and running on http://localhost:3000! If it doesn't work, post on GitHub discussions.

Requires npm 16.10 or higher. npm can be installed as instructed here.

Pushing to this repo will auto deploy with Vercel

Deploy it to the cloud with Vercel (Documentation).

Preview

Preview the example live on StackBlitz:

Open in StackBlitz

Notes

This blog-starter uses Tailwind CSS. To control the generated stylesheet's filesize, this example uses Tailwind CSS' v2.0 purge option to remove unused CSS.