Auto Drive is a decentralized content-addressed storage solution built on the Autonomys Network, leveraging its underlying permanent storage layer known as the Autonomys Distributed Storage Network (DSN). It provides users with a secure and efficient way to store, share, and manage digital assets with the assurance of long-term data persistence.
Auto Drive offers a user-friendly interface for uploading and downloading files, as well as an SDK and API for developers to integrate storage capabilities into their applications.
- Node.js (v20 or later)
- Yarn
For running auto-drive locally you need to launch infra, auth, backend and frontend
Spin up docker instances with:
docker compose -f docker-compose.dev.yml --env-file .env.dev up -dInitialise the DB using:
make init-submodules
yarn
yarn backend db-migrate up
yarn auth db-migrate up
cd apps/hasura
hasura migrate apply --admin-secret myadminsecretkey
hasura metadata apply --admin-secret myadminsecretkey
cd -Once infra is spin up, auth can be launched simply with:
cd apps/auth
cp .env.sample .env
yarn build
yarn start
cd -Next step would be to launch backend using:
cd apps/backend
cp .env.sample .env
cd -Then, you have to enter your have to update to your needs the .env file
Similarly for launching frontend:
cd apps/frontend
cp .env.sample .env
cd -Then, you have to enter your have to update to your needs the .env file (e.g adding Google OAuth app)
Start the server:
cd backend
yarn start
The server will start on http://localhost:3000.
If you are building with Javascript or Typescript you can use @autonomys/auto-drive for other languages you should integrate with the REST API
Run the test suite:
yarn test
