to compile/run for production:
mvn clean install
docker-compose build --no-cache
docker-compose up -d
echo "https://${CODESPACE_NAME}-8080.githubpreview.dev"
to compile/run for development:
mvn clean install
mvn spring-boot:run -Dspring-boot.run.profiles=dev
echo "https://${CODESPACE_NAME}-8080.githubpreview.dev"
usefull:
curl http://localhost:8080/api/counter
docker-compose logs
docker-compose down
docker ps
docker image ls
- The index.html is at src/main/resources/static
- sql things is at src/main/resources/
- Simple REST API is at src/main/java/com/example/
- pytest tests
- Change things to pass the tests
- Push your changes