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.
Before running Hostel By Pass, ensure you have Rust installed on your system.
You can install Rust by following the instructions on rust-lang.org.
If you already have a docker-compose.yml
file in your project directory:
- Open a terminal.
- Navigate to your project directory where the
docker-compose.yml
file is located. - Run the following command to start the MongoDB container:
Open a terminal and write this command:
docker-compose up -d
Open a terminal and write this command:
cargo build
before write this command:
cargo run