Document Versions is a web application that manages the versions of text documents via Git. In the current version of the application, the files are stored in the local environment.
Read the documentation in order to discover the features of Document Versions.
Document Versions is a web application built using the Rust language on the backend, and React JS framework on the frontend. Document Versions stores and versions the files using a Git client via the libgit2 library for Rust.
Install Node.js. Recommended version >= 19.5.0
Install Rust and Cargo. Recommended version:
- Rustc and Cargo >= 1.63.0
Configure the root directory for the workspaces in 'backend/configuration.yaml'.
Configure the root directory for the backed tests in 'backend/configuration_test.yaml'.
cd ./backend
cargo test -- --nocapturecd ./backend
cargo tarpaulin --ignore-testscd ./backend
cargo clippy -- -D warningscd ./backend
cargo fmtcd ./backend
cargo buildcd ./frontend
npm run buildcd ./frontend
npm run lintcd ./frontend
eslint --ext .jsx,.js src/cd ./frontend
eslint --fix --ext .jsx,.js src/cd ./backend
cargo runcd ./frontend
npm run startcd ./frontend
npm run devhttp://localhost:3000Install Node.js. Recommended version >= 19.5.0
Install Docker and Docker Compose.
Configure the root directory for the workspaces in 'backend/configuration.yaml' with the following content:
application_port: 8000
workspaces_path: "/app/git-workspace"cd ./backend
cargo build --releasecd ./frontend
npm run builddocker-compose builddocker-compose uphttp://localhost:80