There are two ways to start working on VirtuDoc. The Docker method is recommened to avoid platform-specific issues, reduce the amount of configuration required to start the application, and to ensure that your development environment is as close as possible to the production environment.
- Download the source code using
git
or the GitHub CLI. - Install Docker and Docker Compose. Docker Desktop is the recommended installer for non-Linux systems. Instructions are located here.
- In your terminal from the project directory, run
docker-compose up --build
. - Visit
localhost:8080
in your browser. - To stop the entire application stack, press
Ctrl-C
.
Once your local stack is working, it is recommened that you set up SSL, especially if you will be doing front-end work. The instructions are in the wiki. Once that is set up you can access the web app from your web browser by visiting https://localhost
.
Unit tests should run automatically when you re-run docker-compose, but you can run them manually with ./mvnw test
. If you make a change to the source code, restart the container from the Docker Desktop GUI, no need to restart the entire stack.
- Download the source code using
git
or the GitHub CLI. - Install Java 11 LTS SE and Maven (Linux user should use the
adoptjdk
version). - Set the environment variables that can be found in docker-compose.yml.
- Install any needed databases (instructions will be added here in the future).
- In your terminal from the project directory, run
./mvnw spring-boot:run
. Windows users should use./mvnw.cmd
. - Visit
localhost:8080
in your browser. - To stop the web server, press
Ctrl-C
.