Welcome to the Tour of Heroes API in Java! This project is a simple API that allows you to manage heroes 🦸🏼♀️. It is based on the Tour of Heroes tutorial from Angular.
If you want to run the project, you can do it in three ways:
You need to have the following tools installed:
- Java 17
- Visual Studio Code or IntelliJ IDEA
You can run the project using Dev Containers:
- Clone the repository.
- Open the repository in Visual Studio Code.
- Click on the "Reopen in Container" button.
You can run the project using GitHub Codespaces:
If you don't want to run the project in GitHub Codespaces, you can run it locally using Dev Containers.
Or... you need to run Postgres locally. You can do this by running the following command:
docker run --name some-postgres -e POSTGRES_PASSWORD=mysecretpassword -d -p 5432:5432 postgres
Also you need to run a Redis server locally. You can do this by running the following command:
docker run --name some-redis -e REDIS_PASSWORD=eYVX7EwVmmxKPCDmwMtyKVge8oLd2t81 -d -p 6379:6379 redis
After that, you can run the project by running the following command:
./gradlew bootRun
Or just press the play button in your IDE.