Small, lightweight pastebin+URL shortener written in Elixir using the Phoenix framework.
Go to file
2023-10-07 22:00:51 +00:00
.github/workflows chore(deps): update actions/checkout action to v3 2023-02-26 19:38:39 +00:00
assets chore(deps): update dependency postcss to v8.4.31 [security] 2023-10-07 22:00:51 +00:00
config fix(config): enable ipv6 for fly databases 2022-05-06 21:14:21 +05:30
lib fix(layout): update personal site link 2023-10-04 02:11:18 +05:30
native/ketbin_utils_syntax fix(native): correct rustler version and feature for the latest erl versions 2023-06-27 21:40:40 +05:30
priv chore: migrate to prod 2021-10-08 01:56:42 +05:30
rel/overlays/bin feat: set up deploys with fly 2022-05-06 19:54:58 +05:30
test refactor(auth): use heex templates 2021-10-07 05:58:00 +05:30
.dockerignore fix(build): add rust and cargo dependency to builder image 2021-08-17 03:22:52 +05:30
.formatter.exs chore(git): Initial commit 2021-08-09 14:18:23 +05:30
.gitignore refactor(config): use secret files in dev mode 2021-08-21 16:47:31 +05:30
Dockerfile fix: *sigh* 2023-02-27 16:56:22 +05:30
fly.toml feat: set up deploys with fly 2022-05-06 19:54:58 +05:30
Makefile chore(build): add image to push dependencies 2021-12-08 23:12:17 +05:30
mix.exs chore(deps): update dependency phoenix_live_view to ~> 0.18.0 2023-02-26 15:19:29 +00:00
mix.lock fix(deps): fix lockfile conflicts 2023-06-27 21:03:37 +05:30
README.md chore(deps): bump phoenix and other package versions 2021-10-07 05:29:22 +05:30
renovate.json chore(deps): add renovate.json 2022-06-26 10:02:13 +00:00
sample.env chore: add sample env file 2021-09-16 23:50:58 +05:30
startup.sh chore: prepare for prod 2021-08-14 01:19:00 +05:30

Katbin

To start your Phoenix server:

  • Copy config/dev.secret.sample.exs to config/dev.secret.exs
  • Fill in the SMTP and database configuration in config/dev.secret.exs
  • Install dependencies with mix deps.get
  • Create and migrate your database with mix ecto.setup
  • Install Node.js dependencies with npm install inside the assets directory
  • Start Phoenix endpoint with mix phx.server

Now you can visit localhost:4000 from your browser.

Self hosting

We recommend using our official docker image. If you wish to build your own docker image, the provided Dockerfile should work out of the box. If you run into any problems, please open an issue.

Populating the environment

Copy the provided sample.env file to .env

cp sample.env .env

Fill in this new file with the required environment variables.

Using the official docker image

docker run --env-file .env atechnohazard/katbin-elixir

Building the docker image

git clone https://github.com/SphericalKat/katbin
cd katbin
docker build -t <username>/katbin .

Running the built docker image

docker run --env-file .env <username>/katbin

For other methods of self hosting, please check the official Phoenix deployment guides.

Learn more