This repository contains the backend source code for the Bill Splitting application, developed by 2023 BakcylProgramowania team.
Before getting started, ensure Docker Desktop is installed on your machine. This application is developed and packaged into Docker containers, hence Docker Desktop is essential for its deployment and testing.
Follow these steps to get a copy of this application and its dependencies on your local machine.
You'll need to build a Docker imag. Use the following command:
docker build -t paragon_back:1.1.7.1 .
📝 Note: Each time a new Docker image is built, ensure to update the tag (1.1.7.1) to maintain versioning.
Create a new directory on your machine, for example, C:\Users\ddnow\Documents\app
, and open Visual Studio Code within this directory.
To initialize the Docker container, use the command below:
docker run -it -e "REPO=https://github.com/BakcylProgramowania/paragon_back.git" -e "BRANCH=main" -v C:\Users\ddnow\Documents\app:/app --entrypoint /bin/bash --publish 8000:8000 --name paragon-back bakcyl/paragon_back:1.1.7
📝 Note: Remember to replace
paragon_back:1.1.7.1
with the custom tag you used during Docker image build and updateC:\Users\ddnow\Documents\app
to the directory path you've created.
Run the appbuild.sh
script to clone the repository into your docker.
Run cd paragon_back
to enter project folder.
cmake --build build
ctest --test-dir build
cmake --build build
./build/src/example-main
Install pre-commit on your local machine (outside of Docker) and execute the following commands:
pre-commit install
cd .github/pre-commit
pre-commit run --all-files