kendas / cb-rust-demo

Rust web service demo at TEX

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cb-rust-demo

This is a demonstration of Rust in the context of web applications (to be) presented at TEX at Codeborne offices.

API Documentation

SwaggerUI that you can play with is available at http://cb-rust-demo.herokuapp.com/openapi/

Local environment setup

The application will run on port 8080.

$ cargo run

Building a docker container

To build a docker container, you must first build the binary outside of the container in your own environment. This is due to the caching limitations of GitHub Actions and some other small annoyances.

$ cargo build --release
$ docker build -t cb_rust_demo .
$ docker run -it --rm -p 8080:8080 cb_rust_demo

About

Rust web service demo at TEX


Languages

Language:Rust 84.3%Language:HTML 14.3%Language:Dockerfile 1.4%