This repository contains a hotel service developed in Node.js that uses MongoDB as the database.
Make sure you have the following installed before getting started:
- Node.js: Download and install Node.js
- MongoDB: Download and install MongoDB
-
Clone this repository to your local machine:
git clone https://github.com/your-username/pruebaapihoteles.git
-
Install project dependencies:
cd pruebaapihoteles npm install
-
Configure the database connection:
- Open the
config.js
file in the root of the project. - Update the MongoDB connection URL with your own credentials and configuration.
- Open the
-
Start the server:
npm start
-
Access the hotel API:
- Base URL:
http://localhost:3000
- Refer to the API documentation for more details on available endpoints.
- Base URL:
If you would like to contribute to this project, follow these steps:
-
Create a new branch for your contribution:
git checkout -b feature/new-feature
-
Make the necessary changes and commit:
git commit -m "Add new feature"
-
Push your changes to your remote repository:
git push origin feature/new-feature
-
Open a pull request on GitHub and describe your changes.
This project is licensed under the MIT License. See the LICENSE file for more information.