Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dennisrosario/king-it-test-hotel-offers
https://github.com/dennisrosario/king-it-test-hotel-offers
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dennisrosario/king-it-test-hotel-offers
- Owner: dennisrosario
- Created: 2024-08-08T14:53:19.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-09T19:23:50.000Z (5 months ago)
- Last Synced: 2024-08-23T22:55:11.655Z (5 months ago)
- Language: TypeScript
- Size: 118 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# King It Test Hotel Offers
This is a Next.js application for displaying hotel offers, containerized using Docker.
## Table of Contents
- [King It Test Hotel Offers](#king-it-test-hotel-offers)
- [Table of Contents](#table-of-contents)
- [Requirements](#requirements)
- [Getting Started](#getting-started)
- [Running the Application](#running-the-application)
- [Building the Docker Image](#building-the-docker-image)
- [Environment Variables](#environment-variables)
- [License](#license)## Requirements
- [Docker](https://www.docker.com/get-started) installed on your machine.
- [Docker Compose](https://docs.docker.com/compose/install/) installed.## Getting Started
1. Clone the repository:
```bash
git clone https://github.com/dennisrosario/king-it-test-hotel-offers.git
cd king-it-test-hotel-offers
```2. Configuring environment
```bash
cp .env.example .env
```## Running the Application
To run the application locally using Docker Compose, follow these steps:
1. Open a terminal and navigate to the project root directory where your `docker-compose.yml` file is located.
2. Use the following command to start the services:
```bash
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`.
3. After the command executes successfully, you can access the application in your web browser at:
```
http://localhost:3000
```4. To stop the application, you can press `CTRL+C` in the terminal or run:
```bash
docker-compose down
```## Building the Docker Image
If you want to build the Docker image without starting the containers, you can use the following command:
```bash
docker-compose build
```## Environment Variables
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.
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.