Fileonchain is a secure file storage solution that allows anyone to upload small and large files to any substrate network, making them permanently available on-chain ⛓️.
- 🌐 Website: https://fileonchain.org
- 🐦 Twitter: @fileonchain
- 🖥️ Live Demo: https://staging.fileonchain.org/
-
Ensure Docker and Docker Compose are installed on your system.
-
Clone the repository and navigate to the project directory.
-
Create a
.env
file in the root directory with the following:DB_PASSWORD=your_db_password DB_PORT=5432 DB_USER=your_db_user HASURA_GRAPHQL_ADMIN_SECRET=your_hasura_admin_secret DATABASE_URL=postgres://your_db_user:your_db_password@db:5432/fileonchain SECRET_KEY_BASE=your_secret_key_base PHX_HOST=localhost
-
Start all services:
docker compose up
-
Start Phoenix, in a new terminal:
mix phx.server
-
Access the services:
- Phoenix application: http://localhost:4000
- Hasura GraphQL engine: http://localhost:8080
-
Install dependencies:
mix deps.get
-
Create and migrate your database:
mix setup mix ecto.migrate
-
Start Phoenix server:
mix phx.server
-
Access the application at http://localhost:4000
- Start Postgres and Hasura:
docker compose up db graphql-engine
- Install dependencies:
mix setup
- Start Phoenix endpoint:
mix phx.server
oriex -S mix phx.server
(inside IEx)
Visit localhost:4000 in your browser.
Ready for production? Check out the Phoenix deployment guides.
We welcome contributions! Please feel free to submit a Pull Request.
This project is licensed under the MIT License.