2022-04-16 18:19:38 +00:00
|
|
|
# HomeDisk cloud server
|
|
|
|
|
2022-06-11 08:46:25 +00:00
|
|
|
[![docs](https://img.shields.io/badge/docs-rust_docs-fff)](https://homedisk-doc.vercel.app)
|
|
|
|
[![](https://img.shields.io/github/license/MedzikUser/HomeDisk)](https://github.com/MedzikUser/HomeDisk)
|
|
|
|
[![](https://img.shields.io/github/languages/code-size/MedzikUser/HomeDisk)](https://github.com/MedzikUser/HomeDisk)
|
|
|
|
[![](https://img.shields.io/tokei/lines/github/MedzikUser/HomeDisk)](https://github.com/MedzikUser/HomeDisk)
|
|
|
|
[![Rust CI](https://github.com/MedzikUser/HomeDisk/actions/workflows/rust.yml/badge.svg)](https://github.com/MedzikUser/HomeDisk/actions/workflows/rust.yml)
|
2022-06-08 19:46:09 +00:00
|
|
|
|
2022-06-11 08:46:25 +00:00
|
|
|
![](https://i.imgur.com/fOtiSf7.png)
|
2022-05-22 10:28:43 +00:00
|
|
|
|
|
|
|
![](https://i.imgur.com/vLautmq.png)
|
|
|
|
|
2022-05-22 11:17:26 +00:00
|
|
|
## 👨💻 Building
|
|
|
|
|
|
|
|
### Server
|
|
|
|
|
|
|
|
#### Requirements
|
|
|
|
- Rust
|
|
|
|
|
|
|
|
To build run the command: `cargo build --release`
|
|
|
|
|
|
|
|
The compiled binary can be found in `./target/release/cloud`
|
|
|
|
|
|
|
|
### Website
|
|
|
|
|
|
|
|
#### Requirements
|
|
|
|
- Node.js
|
|
|
|
- pnpm
|
|
|
|
|
|
|
|
Run these commands to build:
|
|
|
|
|
|
|
|
- Go to directory `./website`
|
|
|
|
- Install dependencies: `pnpm install`
|
|
|
|
- Build website: `pnpm run build`
|
|
|
|
- Export website to static HTML files: `pnpm run export` (Optional)
|
|
|
|
|
|
|
|
If you exported the page to HTML files, they are located in the `./out` directory,
|
|
|
|
if not, you can start the site with `pnpm run start`
|
|
|
|
|
|
|
|
## 🖴 Creating tables in a SQLite database
|
|
|
|
|
|
|
|
#### Requirements
|
|
|
|
- SQLite3
|
2022-04-16 18:19:38 +00:00
|
|
|
|
2022-05-22 11:17:26 +00:00
|
|
|
Run command `sqlite3 homedisk.db < tables.sql` to create SQLite database
|