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 -- --nocapture
cd ./backend
cargo tarpaulin --ignore-tests
cd ./backend
cargo clippy -- -D warnings
cd ./backend
cargo fmt
cd ./backend
cargo build
cd ./frontend
npm run build
cd ./frontend
npm run lint
cd ./frontend
eslint --ext .jsx,.js src/
cd ./frontend
eslint --fix --ext .jsx,.js src/
cd ./backend
cargo run
cd ./frontend
npm run start
cd ./frontend
npm run dev
http://localhost:3000
Install 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 --release
cd ./frontend
npm run build
docker-compose build
docker-compose up
http://localhost:80