diff --git a/README.md b/README.md index e0833a8..1edb045 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,3 @@ - - -
A high-performance, type-safe, and memory-safe Microservice built with Rust. This starter kit provides a robust API, leveraging the power and safety of Rust along with the Axum web framework and Neon for PostgreSQL database interactions.
-
+
+A high-performance, type-safe, and memory-safe microservice starter kit built with Rust. This starter kit provides a robust foundation for building efficient APIs, leveraging the power and safety of Rust along with the Axum web framework and Neon for serverless PostgreSQL database interactions.
## 📝 Table of Contents - [About](#about) -- [Getting Started](#getting_started) + - [Key Features](#key-features) +- [Getting Started](#getting-started) + - [Prerequisites](#prerequisites) + - [Installation](#installation) +- [Project Structure](#project-structure) +- [Running Tests](#running-tests) - [Deployment](#deployment) -- [Built Using](#built_using) +- [Built With](#built-with) - [Authors](#authors) -## 🧐 About -This Rust Microservice Starter Kit is designed to provide a solid foundation for building high-performance, type-safe, and memory-safe microservices. It leverages the power of Rust along with modern frameworks and tools to ensure robust and efficient API development. +## 🧐 About +This Rust Microservice Starter Kit provides a solid foundation for building high-performance, type-safe, and memory-safe microservices. It harnesses the power of Rust along with modern frameworks and tools to ensure robust and efficient API development. **Visit Demo:** https://rust-microservice-starter-kit.fly.dev -### Key Features: +### Key Features - **Rust**: A language empowering everyone to build reliable and efficient software. -- **Axum**: A modular web framework that's built with Tokio, Tower, and Hyper. -- **Neon**: Serverless Postgres with a generous free tier. Neon separates storage and compute to offer autoscaling, branching, and bottomless storage. +- **Axum**: A modular web framework built with Tokio, Tower, and Hyper. +- **Neon**: 🚀 Supercharge your development with Neon's serverless PostgreSQL! Enjoy lightning-fast performance, effortless scaling, and a generous free tier. Say goodbye to database management hassles and hello to the future of PostgreSQL! 🌟 - **High Performance**: Optimized for speed and efficiency. - **Type Safety**: Leveraging Rust's strong type system to prevent runtime errors. - **Memory Safety**: Rust's ownership model ensures memory safety without garbage collection. -## 🏁 Getting Started - -### Project Structure -``` -./rust-microservice-starter-kit -├── Cargo.lock -├── Cargo.toml -├── Dockerfile -├── README.md -├── docs -│ └── API.md -├── fly.toml -├── migration -│ ├── Cargo.lock -│ ├── Cargo.toml -│ ├── README.md -│ └── src -│ ├── lib.rs -│ ├── m20240828_134140_create_feature_flag_table.rs -│ ├── m20240828_140244_seed_feature_flag_with_sample_data.rs -│ └── main.rs -├── src -│ ├── api -│ │ ├── handlers -│ │ │ ├── feature_flags.rs -│ │ │ ├── health_check.rs -│ │ │ └── mod.rs -│ │ ├── mod.rs -│ │ └── routes.rs -│ ├── config.rs -│ ├── db -│ │ └── mod.rs -│ ├── error.rs -│ ├── lib.rs -│ ├── main.rs -│ ├── models -│ │ ├── feature_flags.rs -│ │ ├── mod.rs -│ │ └── prelude.rs -│ └── services -│ ├── feature_flag_service.rs -│ └── mod.rs -└── tests - ├── api_tests.rs - └── common - ├── feature_flag_mock.rs - └── mod.rs -``` +## 🏁 Getting Started -These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. +### Prerequisites -### Prerequisites +1. **Rust (latest stable version)** + - Visit https://www.rust-lang.org/tools/install + - Follow the instructions for your operating system -**1.** Rust (latest stable version) -- Visit https://www.rust-lang.org/tools/install -- Follow the instructions for your operating system - -**2.** SeaORM CLI -Open a terminal and run: -``` -cargo install sea-orm-cli -``` - - **3.** Neon PostgreSQL