Skip to content

MWGuy/VGit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1dfa06b · Feb 1, 2021

History

55 Commits
Jan 31, 2021
Feb 1, 2021
Dec 19, 2020
Nov 17, 2020
Feb 1, 2021
Nov 28, 2020
Feb 1, 2021
Feb 1, 2021
Nov 28, 2020
Feb 1, 2021
Nov 17, 2020
Nov 17, 2020
Nov 28, 2020

Repository files navigation

VGit

Simple git server written with java

Building and running

  1. Download & Install Java Development Kit 11 and the last version of NodeJS with npm.
  2. Build the full distribution of VGit using command:
./gradlew fullBuild
  1. The compiled distribution is located in the folder backend/build/libs
  2. Install mongodb and provide connection uri (with collection) to MONGODB_URI envirement variable. Defualt: mongodb://localhost:27017/vgit
  3. Create new folder for your git repositories and provide to GIT_BASE_DIRECTORY envirement variable
  4. 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