Skip to content

GEdO23/cpsb-api

Repository files navigation

Cutcute Petshop Spring Boot API

Read in portuguese

Read in english

Prerequisites

To run the project, you need to have installed:

How to run the project with Docker

Follow the instructions below to run the container:

1. Clone the repository

git clone https://github.com/GEdO23/cpsb-api.git
cd cpsb-api

2. Build the image

docker build -t cpsb-api .

This command will:

  • Build the image from the Dockerfile (-t cpsb-api)
  • Use the context of the current directory (where the Dockerfile is located)
  • Name the image as cpsb-api

3. Run the container

docker run -d --name cpsb-api -p 8080:8080 cpsb-api

This command will:

  • Run the container in the background (-d)
  • Name the container as cpsb-api (--name cpsb-api)
  • Map port 8080 of the host to port 8080 of the container (-p 8080:8080)

4. Access the API

Access the API at http://localhost:8080

Technologies used