StPfeffer / rusty-roads

A simple route manager application written in Rust
MIT License
0 stars 0 forks source link
rust
Logo

Rusty Roads

A simple route manager application written in Rust

[![Build](https://github.com/StPfeffer/rusty-roads/actions/workflows/build.yml/badge.svg)](https://github.com/StPfeffer/rusty-roads/actions/workflows/build.yml) [![Rust Analyze](https://github.com/StPfeffer/rusty-roads/actions/workflows/rust-clippy.yml/badge.svg)](https://github.com/StPfeffer/rusty-roads/actions/workflows/rust-clippy.yml) [![Rust Check](https://github.com/StPfeffer/rusty-roads/actions/workflows/rust.yml/badge.svg)](https://github.com/StPfeffer/rusty-roads/actions/workflows/rust.yml) [![Release](https://img.shields.io/github/v/release/StPfeffer/rusty-roads?color=%23c694ff)](https://github.com/StPfeffer/rusty-roads/releases/latest)

About

This project is part of our college coursework, aiming to develop a simple route manager application. We chose the Rust programming language to add an extra layer of challenge and learning opportunity.

Features

Installation

Work in progress.

Build from source

Install Rust

Ensure you have Rust installed on your machine. If not, download and install it from rust-lang.org.

Install Docker

Ensure you have Docker installed on your machine. If not, download and install it from docker.com.

Database Setup

After installing Docker, navigate to the project directory and start the PostgreSQL container:

docker-compose up postgres

Install Dependencies

After the container is running, you can build the application using the following command:

cargo build

This will install all the required dependencies to run the application.

Environment Variables

You'll need a PostgreSQL user, password, database and URL.

Once you have it, you can copy or rename the .env.example file to .env and put it on POSTGRES_USER, POSTGRES_PASSWORD, POSTGRES_DB and DATABASE_URL.

Running

Once everything is set up, you can run the following command to start the application:

cargo run

License

This project is licensed under the MIT License.