/hostel-by-pass

Hostel By Pass is a microservice written in Rust and Axum framework, designed to provide various useful features for managing room reservations. The microservice uses MongoDB as its database.

Primary LanguageRustMIT LicenseMIT

Hostel By Pass

Hostel By Pass is a microservice written in Rust and Axum framework, designed to provide various useful features for managing room reservations. The microservice uses MongoDB as its database.

Rust MongoDB

Install the Dependencies

Before running Hostel By Pass, ensure you have Rust installed on your system.

Rust

You can install Rust by following the instructions on rust-lang.org.

Docker Compose

If you already have a docker-compose.yml file in your project directory:

  1. Open a terminal.
  2. Navigate to your project directory where the docker-compose.yml file is located.
  3. Run the following command to start the MongoDB container:

How start

Docker compose

Open a terminal and write this command:

docker-compose up -d

Rust app

Open a terminal and write this command:

cargo build

before write this command:

cargo run