A rocket.rs webserver designed to mirror a request back to a client that made it. This was originally designed to test requests from the browser or http clients. The backend keeps track of requests made by users.
Go to file
Camerin Figueroa 0cc94ec48a
Merge pull request #6 from RaspberryProgramming/build-test-artifact-workflow
Build test artifact workflow
2024-07-17 14:23:15 -04:00
.github/workflows Updated docker-image.yml name 2024-07-17 18:18:49 +00:00
.vscode Added Additional features 2024-03-04 22:19:39 +00:00
migrations Updated docker image to default to port 80 2024-06-18 15:28:10 -04:00
src Added ownership registration page. 2024-07-10 17:40:25 +00:00
templates Added ownership registration page. 2024-07-10 17:40:25 +00:00
.env Added Docker and short instructions 2024-03-07 21:57:25 +00:00
.env.docker Added Docker and short instructions 2024-03-07 21:57:25 +00:00
.gitignore Updated Docker compose and docker image to pass DATABASE_URL as environment var to Request Mirror 2024-05-03 00:46:49 +00:00
Cargo.lock Added ownership registration page. 2024-07-10 17:40:25 +00:00
Cargo.toml Added ownership registration page. 2024-07-10 17:40:25 +00:00
Dockerfile v0.5 Upgrade - Upgraded and modified project to support rocket.rs v0.5.1 2024-07-03 23:34:25 +00:00
README.md Updated docker-image.yml name 2024-07-17 18:18:49 +00:00
Rocket.toml v0.5 Upgrade - Upgraded and modified project to support rocket.rs v0.5.1 2024-07-03 23:34:25 +00:00
deploy.sh Updated docker image to default to port 80 2024-06-18 15:28:10 -04:00
diesel.toml Added Additional features 2024-03-04 22:19:39 +00:00
docker-compose.yml Updated docker image to default to port 80 2024-06-18 15:28:10 -04:00

README.md

Request Mirror

This application provides a web ui for sending get/post requests and provides a visual ui for looking at what the application received. This is written in rust.

Build and Publish Docker Image Build and Test Rust

TODO:

  • Update Readme
  • Document
  • Develop Pipelines

Docker

Please read through the documentation on setting up and installing docker on your machine. We'll use the CLI commands to deploy the application to docker.

See Get Docker

First you'll want to ensure you have build the container. Do that by running

docker build . -t raspberrypi99/request-mirror

Next you can start up the application using docker compose

docker compose up -d

This will deploy the application to docker. It will setup the postgres server, deploy the database using diesel and start request-mirror.

The following command will stop the deployed containers

docker compose down

Pushing to dockerhub

The image can then be pushed to docker using the following command. You may also want to modify it a little to your need

First login

docker login

Then push the image

docker push raspberrypi99/request-mirror:latest

Deploying to azure

TODO