/rocket-sea-orm-starter

🚀 A starter template for building web applications with Rocket.rs and SeaOrm, leveraging the power of Rust for blazing fast and safe web development.

Primary LanguageRust

Rocket.rs + SeaOrm Starter Template

🚀 A starter template for building web applications with Rocket.rs and SeaOrm, leveraging the power of Rust for blazing fast and safe web development.

Features

  • Rocket.rs: A web framework for Rust that makes it simple to write fast, secure web applications without sacrificing flexibility, usability, or type safety.
  • SeaOrm: An async & dynamic ORM for Rust. Safe, efficient, and designed to work seamlessly with Rocket.rs.
  • Modular Architecture: Organized in a workspace layout to separate concerns and manage dependencies efficiently.

Getting Started

Clone the repository and navigate to the project directory:

git clone https://github.com/phibersoft/rocket-sea-orm-starter.git
cd rocket-sea-orm-starter

For development,

cargo run

For production,

cargo build --release
./target/release/rocket-sea-orm-starter

For testing,

cargo test

Docker

Build the docker image

docker build -t rocket-sea-orm-starter .

Run the docker container

docker run -p 8080:8080 rocket-sea-orm-starter

TODO

  • Add example for Relationship
  • DockerFile for deployment
  • CI/CD Pipeline