reaktivo / been

Been is a wrapper around justine.lol's redbeen project, it allows you to create to convert a web application into a single file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Been

Been allows you to convert a statically exported web app into a single executable. It's a simple convenience wrapper around justine.lol's amazing redbean project.

What is redbean

Redbean makes it possible to distribute a web application as a single-file executable that is portable, meaning that it will run on Linux, macOS or Windows.

How to use

Been takes a single argument, a directory of files to be served. Once run, it will create a sibling file to the directory appending .com to it's name.

been ./dist

# ./dist.com server created
./dist.com -p 8080

Usage with static site builders

Next.js

"scripts": {
  "build": "next build && next export && been ./out"
}

Vite.js

"scripts": {
  "build": "vue-tsc --noEmit && vite build && been ./dist",
}

Create React App

"scripts": {
  "build": "react-scripts build && been ./build"
}

More

You can checkout more of how redbean works at justine.lol's site

About

Been is a wrapper around justine.lol's redbeen project, it allows you to create to convert a web application into a single file


Languages

Language:Shell 100.0%