Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mwguy/vgit
Simple git server written with java
https://github.com/mwguy/vgit
git spring-boot
Last synced: 2 months ago
JSON representation
Simple git server written with java
- Host: GitHub
- URL: https://github.com/mwguy/vgit
- Owner: MWGuy
- Created: 2019-11-26T12:23:09.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-01T15:14:40.000Z (almost 4 years ago)
- Last Synced: 2023-03-12T01:41:35.708Z (almost 2 years ago)
- Topics: git, spring-boot
- Language: Java
- Homepage:
- Size: 188 KB
- Stars: 16
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# VGit
Simple git server written with java
## Building and running
1. Download & Install **Java Development Kit 11** and the last version of [NodeJS](https://nodejs.org/en/download/) with npm.
- Java for Mac - https://download.bell-sw.com/java/11.0.5+11/bellsoft-jdk11.0.5+11-macos-amd64.zip
- Java for Linux - https://download.bell-sw.com/java/11/bellsoft-jdk11-linux-amd64.tar.gz
2. Build the full distribution of VGit using command:
```bash
./gradlew fullBuild
```
3. The compiled distribution is located in the folder ``backend/build/libs``
4. Install mongodb and provide connection uri (with collection) to MONGODB_URI envirement variable. Defualt: ``mongodb://localhost:27017/vgit``
5. Create new folder for your git repositories and provide to GIT_BASE_DIRECTORY envirement variable
6. Run compiled distribution using ``java -jar path/to/file.jar`` command. Then open ``localhost:8080``## Building and running with docker
1. Build vgit image ``docker build . -t vgit:latest``
2. Deploy vgit and mongodb with docker-compose ``docker-compose up -d``
3. Open ``localhost:8080``