Skip to content

A file storage service using Rust, gRPC, and MongoDB.

Notifications You must be signed in to change notification settings

justdimaa/cloud-rs

Repository files navigation

cloud-rs

This project is currently under development and not yet ready for use in any environments.

What works so far:

  • Linux support (Windows and macOS untested)
  • User authentication
  • Downloading, uploading, and replacing files

Setup

  1. Create a .env file in the workspace directory, with the following variables:
# client
DATABASE_URL=sqlite://cloud-desktop/sync.db # only required for client builds

# api
API_DATABASE_URL=mongodb://root:yourmongopassword@localhost:27017
API_ENDPOINT=[::1]:50051
API_USER_STORAGE_QUOTA=1073741824 # 10 GiB

# docker
DOCKER_MONGO_USER=root
DOCKER_MONGO_PWD=yourmongopassword
  1. If you don't have a mongodb server running, use this command:
# docker and docker-compose must be installed on your system
# a new mongodb server will be set up with the .env credentials
docker-compose up -d
  1. Start the api server:
cargo run --bin cloud-api
  1. Open the client:
cargo run --bin cloud-desktop

About

A file storage service using Rust, gRPC, and MongoDB.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages