Simple git server written with java
- Download & Install Java Development Kit 11 and the last version of NodeJS with npm.
- Build the full distribution of VGit using command:
./gradlew fullBuild- The compiled distribution is located in the folder
backend/build/libs - Install mongodb and provide connection uri (with collection) to MONGODB_URI envirement variable. Defualt:
mongodb://localhost:27017/vgit - Create new folder for your git repositories and provide to GIT_BASE_DIRECTORY envirement variable
- Run compiled distribution using
java -jar path/to/file.jarcommand. Then openlocalhost:8080
- Build vgit image
docker build . -t vgit:latest - Deploy vgit and mongodb with docker-compose
docker-compose up -d - Open
localhost:8080