https://github.com/0gis0/tour-of-heroes-api-java
https://github.com/0gis0/tour-of-heroes-api-java
backstage-include
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/0gis0/tour-of-heroes-api-java
- Owner: 0GiS0
- Created: 2023-03-31T07:55:45.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-04T02:58:26.000Z (over 1 year ago)
- Last Synced: 2024-11-14T15:46:48.988Z (over 1 year ago)
- Topics: backstage-include
- Language: Java
- Homepage:
- Size: 164 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# π¦Έπ»ββοΈ Tour of heroes API in Java βοΈ

## 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](https://angular.io/tutorial) 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:
[](https://codespaces.new/octodemo/tour-of-heroes-api-java)
## 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:
```bash
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:
```bash
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:
```bash
./gradlew bootRun
```
Or just press the play button in your IDE.