Golang 1.21.9
Dependencies: git, make, docker, shell (bash or powershell)
git clone https://github.com/DenHax/LibreLib-back
cd LibreLib-back
make auto-start
What's happend?
After enter make auto-start
script choose target OS, choose follow script for autostart from scripts/ and after run option compose
for target system.
Autostart generate and activate dotenv file for correct operation of the application - add required environment variables to local machine for example how it start.
Compose activate deployments/compose.yaml and build all services: backend app, db server.
- Docker via official site
Donwload and install Docker Desktop from https://www.docker.com/products/docker-desktop
- Make and Git via Git Bash
Install Git for Windows from https://gitforwindows.org/
Make will be avainble by default. Create alias in your powershell config on "make"
- Docker, Make, Git via Chocolatey
choco install make git docker-desktop
- Make and Git Scoop
scoop install make git
- Use WSL (Windows Subsystem for Linux)
Install wsl with latest Ubuntu (or choose your preferred distribution)
wsl --install
Update system and install make with your distribution's package manager
sudo apt update
sudo apt install make git docker.io
- Make via Cygwin
Download and install Cygwin from https://www.cygwin.com/ and choose make in installing proccess
- Make via MinGW
Download and install MinGW from https://osdn.net/projects/mingw/releases/ and choose make in installing proccess
sudo apt install make git docker
sudo dnf install make git docker
sudo apt install make git docker
sudo apt-get install make git docker
sudo pacman -S make git docker
sudo xbps-install -S make git docker
nix-env -iA nixpkgs.make nixpkgs.git nixpkgs.docker
# /etc/nixos/configuration.nix
{
...
environment.systemPackages = with pkgs; [ make git docker ];
...
}
sudo nixos-rebuild switch
sudo apk add make git docker
sudo zypper install make git docker
sudo slackpkg install make git docker
pkg install gmake git docker
sudo apt install make git docker
### Install golang
apt install go
### Install dependencies
git clone https://github.com/DenHax/LibreLib-back
cd LibreLib-back
go mod tidy
# Run server
go run ./cmd/librelib/main.go
# Build app
go build ./cmd/librelib/main.go
apt install docker
git clone https://github.com/DenHax/LibreLib-back
cd LibreLib-back
docker compose -f ./deployments/compose.yaml up --build