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.
|
|
5 months ago | |
|---|---|---|
| assets | 5 months ago | |
| config | 5 months ago | |
| examples/nginx | 6 months ago | |
| lib | 5 months ago | |
| priv | 5 months ago | |
| rel/overlays/bin | 6 months ago | |
| test | 5 months ago | |
| .dockerignore | 6 months ago | |
| .drone.yml | 5 months ago | |
| .env.example | 6 months ago | |
| .env_db.example | 6 months ago | |
| .formatter.exs | 6 months ago | |
| .gitignore | 8 months ago | |
| .igniter.exs | 8 months ago | |
| COPYING | 6 months ago | |
| Dockerfile | 6 months ago | |
| README.md | 5 months ago | |
| docker-compose.yml | 5 months ago | |
| mix.exs | 5 months ago | |
| mix.lock | 5 months 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.examplefile and save as.env - copy
.env_db.examplefile and save as.env_db - change the values in
.envand.env_dbyou can usemix phx.gen.secretto 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.yamlfile - 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.confto/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.comto 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 + canda.
Author
Kostiantyn Klochko (c) 2025
License
Under the GNU Affero General Public License v3.0.