/api-goat

Simple REST API with vulnerabilities written in Rust

Primary LanguageRust

Build Status

API Goat

  • Simple REST API with vulnerabilities written in Rust

🚧 Under development 🚧

How to run

Use docker-compose

  • Server port is exposed on 3000
  • Postgres port is exposed on 5432
docker-compose up

Use Postgres service

  • Postgres port is exposed on 5432
docker-compose up -d postgres

Run manually

  1. Install Rust
  2. Install Postgres
  3. Clone this repository
  4. Install diesel_cli: cargo install diesel_cli --no-default-features --features postgres
  • If there is a problem with diesel_cli compilation, make sure the postgres client is installed
  1. Run Postgres on port 5432
  2. Apply migrations diesel migration run
  3. Run cargo run --release or cargo build --release && ./target/release/api-goat
  4. Server is running on port 3000