An open API service indexing awesome lists of open source software.

https://github.com/felipeoriani/rust-raw-rest-api

This repository is part of my Rust learning journey, demonstrating how to build a raw REST API with HTTP streams and PostgreSQL for data access.
https://github.com/felipeoriani/rust-raw-rest-api

cargo http postgres postgresql rest-api rust rust-lang

Last synced: 10 months ago
JSON representation

This repository is part of my Rust learning journey, demonstrating how to build a raw REST API with HTTP streams and PostgreSQL for data access.

Awesome Lists containing this project

README

          

# Rust REST API

This project was created to learn more about Rust programming language, and the target here is to have a working simple raw REST API written in Rust.

## Dependencies

```
docker compose up -d
```

## How to run

Use cargo to build and run at the terminal:

```
cargo build
```
And then
```
cargo run
```

It will use the `.env` file to set the PORT, or if it's not defined, the port `8080` will be used.