Skip to content

aytigra/ozfarium

Repository files navigation

Ozfarium

Best OzFa gallery ever created

Install basic dependencies (Ubuntu/Debian)

sudo apt update

sudo apt install -y build-essential inotify-tools curl wget git libssh-dev

Install PostgreSQL (Ubuntu/Debian)

sudo apt install postgresql postgresql-contrib

sudo service postgresql start

sudo -u postgres psql -c "ALTER USER postgres PASSWORD 'postgres';"

sudo service postgresql restart

Install PostgreSQL (MacOS)

brew install postgresql@14

brew services start postgresql@14

createuser postgres --interactive

Install Asdf

Installation Guide

Install Asdf plugins:

sudo apt-get install unzip dirmngr gpg gawk curl

asdf plugin add erlang https://github.com/asdf-vm/asdf-erlang.git

asdf plugin add elixir https://github.com/asdf-vm/asdf-elixir.git

asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git

asdf install - installs required versions of elixir, erlang and nodejs

Install JS dependencies

cd assets && npm install && cd ..

Start Phoenix Server

mix deps.get - installs elixir packages

mix deps.compile - precompiles elixir packages

mix ecto.setup - creates development DB

iex -S mix phx.server - starts local server

Now you can visit localhost:4000 from your browser.

You will see Auth Bypass on sign-in page

Testing Telegram Auth [TODO]

Create telegram bot through Telegram BotFather

Source its name and token into TELEGRAM_BOT and TELEGRAM_BOT_TOKEN

Start Ngrok

Set ngrok domain as bot domain through Telegram BotFather

Try auth

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •