You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
2 weeks ago | |
---|---|---|
assets | 3 weeks ago | |
config | 1 month ago | |
examples/nginx | 2 months ago | |
lib | 3 weeks ago | |
priv | 3 weeks ago | |
rel/overlays/bin | 2 months ago | |
test | 3 weeks ago | |
.dockerignore | 2 months ago | |
.drone.yml | 1 month ago | |
.env.example | 2 months ago | |
.env_db.example | 2 months ago | |
.formatter.exs | 2 months ago | |
.gitignore | 4 months ago | |
.igniter.exs | 4 months ago | |
COPYING | 1 month ago | |
Dockerfile | 2 months ago | |
README.md | 4 weeks ago | |
docker-compose.yml | 4 weeks ago | |
mix.exs | 2 weeks ago | |
mix.lock | 2 weeks ago |
README.md
DecentralisedBookIndex
DecentralisedBookIndex is a web-server to manage the book metadata in the decentralise manner.
Getting started
- clone this repository
- copy
.env.example
file and save as.env
- copy
.env_db.example
file and save as.env_db
- change the values in
.env
and.env_db
you can usemix phx.gen.secret
to generate secrets. update the PHX_HOST to your domain name. - if you don't want to pull the pre-built container
- uncomment the part to build the image in the
docker-compose.yaml
file - comment the image part to avoid pulling.
- uncomment the part to build the image in the
- run
docker compose up -d
- run migrations
docker exec -it dbi bin/migrate
- open the url (
PHX_HOST
) in a browser. register a user. - install nginx for as a reverse proxy
- configure the web-site config for nginx
change example.com to your domain.
copy example config from
examples/nginx/example.com.conf
to/etc/nginx/sites-available
. rename the file to your domain and change the domain within the file. enable the web-site with commandln -s /etc/nginx/sites-available/example.com.conf /etc/nginx/sites-enabled/
. - run the commands to promote an user to the admin.
change
admin@example.com
to your email.
close the terminal withdocker exec -it dbi bin/decentralised_book_index remote DecentralisedBookIndex.Accounts.User.get_by_email!("admin@example.com", authorize?: false) \ |> DecentralisedBookIndex.Accounts.User.set_role(:admin, authorize?: false)
Ctrl + c
anda
.
Author
Kostiantyn Klochko (c) 2025
License
Under the GNU Affero General Public License v3.0.