ft-demo

command module
v0.0.0-...-2f920bb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 9, 2024 License: GPL-3.0 Imports: 23 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

ft-demo

ft-demo is a wrapper around ft that enables random users to try ft. checkout the graph below to understand how ft-demo works.

can I run it?

Yeah, just clone the repository, cd into it and execute the following commands:

docker build -t ft-demo - < Dockerfile
docker run --rm -d --device /dev/fuse --privileged -p 127.0.0.1:12345:12345 ft-demo

Then, go to localhost:12345 and voilà.

sweet, can I try?

yeah, just go to ft.lemondev.xyz.

note: this instance will restart everyday at 00:00 MYT Time.

okay, cool, but how can I run it?

ahh, just compile the main.go file. Afterwards, create an init script for ft-demo, here's mine that works on Alpine linux in OpenRC.

After that is done, simply reverse-proxy ft-demo and you should be good to go.

what if I use systemd?

Well, you have to create your own script file. Do not fret, however, it is pretty painless. For ft-demo, make sure of the following:

  1. ft is running
  2. ft is run in a directory where client and static exist
  3. ft-demo can connect to ft's unix or tcp socket
  4. before ft-demo launches, the fuse directory is unmounted
  5. check for any pesky CORS headers

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址