Skip to content

0GiS0/tour-of-heroes-api-java

Repository files navigation

🦸🏻‍♂️ Tour of heroes API in Java ☕️

Heroes with Java coffee

Introduction

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.

How to run the project

If you want to run the project, you can do it in three ways:

Installing the required tools

You need to have the following tools installed:

  • Java 17
  • Visual Studio Code or IntelliJ IDEA

Using Dev Containers

You can run the project using Dev Containers:

  1. Clone the repository.
  2. Open the repository in Visual Studio Code.
  3. Click on the "Reopen in Container" button.

Using GitHub Codespaces

You can run the project using GitHub Codespaces:

Open in GitHub Codespaces

Running the project

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.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published