This is a Next.js application for displaying hotel offers, containerized using Docker.
- Docker installed on your machine.
- Docker Compose installed.
-
Clone the repository:
git clone https://github.com/dennisrosario/king-it-test-hotel-offers.git cd king-it-test-hotel-offers
-
Configuring environment
cp .env.example .env
To run the application locally using Docker Compose, follow these steps:
-
Open a terminal and navigate to the project root directory where your
docker-compose.yml
file is located. -
Use the following command to start the services:
docker-compose up
This command will build the Docker images if they are not already built and start the services as defined in your
docker-compose.yml
. -
After the command executes successfully, you can access the application in your web browser at:
http://localhost:3000
-
To stop the application, you can press
CTRL+C
in the terminal or run:docker-compose down
If you want to build the Docker image without starting the containers, you can use the following command:
docker-compose build
Make sure to set up the necessary environment variables in your docker-compose.yml
or through an .env
file as needed for your application to run correctly.
This project is licensed under the MIT License. See the LICENSE file for details.