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.
 
 
 
 
Go to file
KKlochko e1c818914e
Update the style for the error pages.
2 months ago
assets Update the FormComponent for Book to reorder BookIds and AuthorRoles. 2 months ago
config Add the configuration for the email. 2 months ago
lib Update the style for the error pages. 2 months ago
priv Add GIN indexes for attributes which used to search. 2 months ago
rel/overlays/bin Add the docker release configuration. 2 months ago
test Add the brief_description for Book and Author. 2 months ago
.dockerignore Add the docker release configuration. 2 months ago
.drone.yml Add the drone CI/CD configuration. 4 months ago
.env.example Add the configuration for the email. 2 months ago
.env_db.example Add the docker-compose configuration and examples of env files. 2 months ago
.formatter.exs Add Oban for background jobs. 2 months ago
.gitignore Update the .gitignore. 4 months ago
.igniter.exs Init the project. 4 months ago
Dockerfile Update the mix and docker image configuration to install js assets. 2 months ago
README.md Update the README to add guide how to create an admin user. 2 months ago
docker-compose.yml Add the docker-compose configuration and examples of env files. 2 months ago
mix.exs Add the configuration for the email. 2 months ago
mix.lock Add the configuration for the email. 2 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.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 use mix phx.gen.secret to generate secrets update the PHX_HOST to your domain name
  • run docker compose up -d
  • run migrations docker exec -it dbi bin/migrate
  • open the url (PHX_HOST) in a browser register a user
  • run the commands to promote an user to the admin. change admin@example.com to your email.
    docker 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)
    
    close the terminal with Ctrl + c and a.

Author

Kostiantyn Klochko (c) 2023-2025