Renamed project.

This commit is contained in:
Rik 2025-01-30 22:38:01 +00:00 committed by GitHub
parent e94168edb5
commit 830dbdb207
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,23 +24,15 @@ async fn main() {
// Print a cool startup message with ASCII art and emojis // Print a cool startup message with ASCII art and emojis
println!("{}", r#" println!("{}", r#"
##### ## ## Axum-API-Quickstart
## ## ## - An example API built with Rust, Axum, SQLx, and PostgreSQL
## ## ## ## ##### ####### ##### #### #### - GitHub: https://github.com/Riktastic/Axum-API-Quickstart/
##### ## ## ## ## ## ## ## ## ##
#### ## ## ## ## ## ## ## ## ##
## ## ## ### ## ## ## ### ## ## ##
## ## ### ## ##### ### ### ## ##### ######
##
Rustapi - An example API built with Rust, Axum, SQLx, and PostgreSQL
GitHub: https://github.com/Riktastic/rustapi
"#); "#);
println!("🚀 Starting Rustapi..."); println!("🚀 Starting Rustapi...");
// Retrieve server IP and port from the environment, default to 0.0.0.0:3000 // Retrieve server IP and port from the environment, default to 127.0.0.1:3000
let ip: IpAddr = config::get_env_with_default("SERVER_IP", "0.0.0.0") let ip: IpAddr = config::get_env_with_default("SERVER_IP", "127.0.0.1")
.parse() .parse()
.expect("❌ Invalid IP address format. Please provide a valid IPv4 address. For example 0.0.0.0 or 127.0.0.1."); .expect("❌ Invalid IP address format. Please provide a valid IPv4 address. For example 0.0.0.0 or 127.0.0.1.");
let port: u16 = config::get_env_u16("SERVER_PORT", 3000); let port: u16 = config::get_env_u16("SERVER_PORT", 3000);