chore: rename project to bakit
All checks were successful
Publish Docker Images / build-and-publish (push) Successful in 13m40s
All checks were successful
Publish Docker Images / build-and-publish (push) Successful in 13m40s
This commit is contained in:
40
Cargo.lock
generated
40
Cargo.lock
generated
@@ -134,6 +134,26 @@ dependencies = [
|
|||||||
"fs_extra",
|
"fs_extra",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "bakit"
|
||||||
|
version = "0.1.0"
|
||||||
|
dependencies = [
|
||||||
|
"chrono",
|
||||||
|
"config",
|
||||||
|
"dotenvy",
|
||||||
|
"governor",
|
||||||
|
"lettre",
|
||||||
|
"poem",
|
||||||
|
"poem-openapi",
|
||||||
|
"serde",
|
||||||
|
"serde_json",
|
||||||
|
"thiserror",
|
||||||
|
"tokio",
|
||||||
|
"tracing",
|
||||||
|
"tracing-subscriber",
|
||||||
|
"validator",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "base64"
|
name = "base64"
|
||||||
version = "0.21.7"
|
version = "0.21.7"
|
||||||
@@ -1573,26 +1593,6 @@ dependencies = [
|
|||||||
"sha2",
|
"sha2",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "phundrak-dot-com-backend"
|
|
||||||
version = "0.1.0"
|
|
||||||
dependencies = [
|
|
||||||
"chrono",
|
|
||||||
"config",
|
|
||||||
"dotenvy",
|
|
||||||
"governor",
|
|
||||||
"lettre",
|
|
||||||
"poem",
|
|
||||||
"poem-openapi",
|
|
||||||
"serde",
|
|
||||||
"serde_json",
|
|
||||||
"thiserror",
|
|
||||||
"tokio",
|
|
||||||
"tracing",
|
|
||||||
"tracing-subscriber",
|
|
||||||
"validator",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pin-project"
|
name = "pin-project"
|
||||||
version = "0.4.30"
|
version = "0.4.30"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "phundrak-dot-com-backend"
|
name = "bakit"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
publish = false
|
publish = false
|
||||||
@@ -11,7 +11,7 @@ path = "src/lib.rs"
|
|||||||
|
|
||||||
[[bin]]
|
[[bin]]
|
||||||
path = "src/main.rs"
|
path = "src/main.rs"
|
||||||
name = "phundrak-dot-com-backend"
|
name = "bakit"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
chrono = { version = "0.4.42", features = ["serde"] }
|
chrono = { version = "0.4.42", features = ["serde"] }
|
||||||
|
|||||||
24
README.md
24
README.md
@@ -12,11 +12,11 @@ gitea: none
|
|||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
<a href="https://sonar.phundrak.com/dashboard?id=phundrak-backend" target="_blank">
|
<a href="https://sonar.phundrak.com/dashboard?id=bakit" target="_blank">
|
||||||
<img src="https://sonar.phundrak.com/api/project_badges/measure?project=phundrak-backend&metric=coverage&token=sqb_bda24bf36825576d6c6b76048044e103339c3c5f" alt="Sonar Coverage" />
|
<img src="https://sonar.phundrak.com/api/project_badges/measure?project=bakit&metric=coverage&token=sqb_bda24bf36825576d6c6b76048044e103339c3c5f" alt="Sonar Coverage" />
|
||||||
</a>
|
</a>
|
||||||
<a href="https://sonar.phundrak.com/dashboard?id=phundrak-backend" target="_blank">
|
<a href="https://sonar.phundrak.com/dashboard?id=bakit" target="_blank">
|
||||||
<img src="https://sonar.phundrak.com/api/project_badges/measure?project=phundrak-backend&metric=alert_status&token=sqb_bda24bf36825576d6c6b76048044e103339c3c5f" alt="Sonar Quality Gate Status" />
|
<img src="https://sonar.phundrak.com/api/project_badges/measure?project=bakit&metric=alert_status&token=sqb_bda24bf36825576d6c6b76048044e103339c3c5f" alt="Sonar Quality Gate Status" />
|
||||||
</a>
|
</a>
|
||||||
<a href="#license">
|
<a href="#license">
|
||||||
<img src="https://img.shields.io/badge/License-AGPL--3.0--only-blue" alt="License" />
|
<img src="https://img.shields.io/badge/License-AGPL--3.0--only-blue" alt="License" />
|
||||||
@@ -141,14 +141,14 @@ For optimized production builds:
|
|||||||
cargo build --release
|
cargo build --release
|
||||||
```
|
```
|
||||||
|
|
||||||
The compiled binary will be at `target/release/backend`.
|
The compiled binary will be at `target/release/bakit`.
|
||||||
|
|
||||||
**With Nix:**
|
**With Nix:**
|
||||||
|
|
||||||
Build the backend binary:
|
Build the backend binary:
|
||||||
```bash
|
```bash
|
||||||
nix build .#backend
|
nix build .#backend
|
||||||
# Binary available at: ./result/bin/backend
|
# Binary available at: ./result/bin/bakit
|
||||||
```
|
```
|
||||||
|
|
||||||
Build Docker images:
|
Build Docker images:
|
||||||
@@ -161,7 +161,7 @@ nix build .#backendDockerLatest
|
|||||||
|
|
||||||
# Load into Docker
|
# Load into Docker
|
||||||
docker load < result
|
docker load < result
|
||||||
# Image will be available as: localhost/phundrak/backend-rust:latest
|
# Image will be available as: localhost/phundrak/bakit:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
The Nix build ensures reproducible builds with all dependencies pinned.
|
The Nix build ensures reproducible builds with all dependencies pinned.
|
||||||
@@ -336,7 +336,7 @@ Docker images are automatically built and published via GitHub Actions to the co
|
|||||||
Pull and run the latest image:
|
Pull and run the latest image:
|
||||||
```bash
|
```bash
|
||||||
# Pull from Phundrak Labs (labs.phundrak.com)
|
# Pull from Phundrak Labs (labs.phundrak.com)
|
||||||
docker pull labs.phundrak.com/phundrak/phundrak-dot-com-backend:latest
|
docker pull labs.phundrak.com/phundrak/bakit:latest
|
||||||
|
|
||||||
# Run the container
|
# Run the container
|
||||||
docker run -d \
|
docker run -d \
|
||||||
@@ -349,7 +349,7 @@ docker run -d \
|
|||||||
-e APP__EMAIL__PASSWORD=your_password \
|
-e APP__EMAIL__PASSWORD=your_password \
|
||||||
-e APP__EMAIL__FROM="Contact Form <noreply@example.com>" \
|
-e APP__EMAIL__FROM="Contact Form <noreply@example.com>" \
|
||||||
-e APP__EMAIL__RECIPIENT="Admin <admin@example.com>" \
|
-e APP__EMAIL__RECIPIENT="Admin <admin@example.com>" \
|
||||||
labs.phundrak.com/phundrak/phundrak-dot-com-backend:latest
|
labs.phundrak.com/phundrak/bakit:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
### Available Image Tags
|
### Available Image Tags
|
||||||
@@ -367,7 +367,7 @@ Build with Nix (recommended for reproducibility):
|
|||||||
```bash
|
```bash
|
||||||
nix build .#backendDockerLatest
|
nix build .#backendDockerLatest
|
||||||
docker load < result
|
docker load < result
|
||||||
docker run -p 3100:3100 localhost/phundrak/backend-rust:latest
|
docker run -p 3100:3100 localhost/phundrak/bakit:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
Build with Docker directly:
|
Build with Docker directly:
|
||||||
@@ -383,7 +383,7 @@ version: '3.8'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
backend:
|
backend:
|
||||||
image: labs.phundrak.com/phundrak/phundrak-dot-com-backend:latest
|
image: labs.phundrak.com/phundrak/bakit:latest
|
||||||
ports:
|
ports:
|
||||||
- "3100:3100"
|
- "3100:3100"
|
||||||
environment:
|
environment:
|
||||||
@@ -435,7 +435,7 @@ To use the published images, authenticate with the registry:
|
|||||||
echo $GITHUB_TOKEN | docker login labs.phundrak.com -u USERNAME --password-stdin
|
echo $GITHUB_TOKEN | docker login labs.phundrak.com -u USERNAME --password-stdin
|
||||||
|
|
||||||
# Pull the image
|
# Pull the image
|
||||||
docker pull labs.phundrak.com/phundrak/phundrak-dot-com-backend:latest
|
docker pull labs.phundrak.com/phundrak/bakit:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
### Required Secrets
|
### Required Secrets
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ application:
|
|||||||
protocol: http
|
protocol: http
|
||||||
host: 127.0.0.1
|
host: 127.0.0.1
|
||||||
base_url: http://127.0.0.1:3100
|
base_url: http://127.0.0.1:3100
|
||||||
name: "com.phundrak.backend.dev"
|
name: "bakit-dev"
|
||||||
|
|
||||||
email:
|
email:
|
||||||
host: localhost
|
host: localhost
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ debug: false
|
|||||||
frontend_url: ""
|
frontend_url: ""
|
||||||
|
|
||||||
application:
|
application:
|
||||||
name: "com.phundrak.backend.prod"
|
name: "bakit-prod"
|
||||||
protocol: https
|
protocol: https
|
||||||
host: 0.0.0.0
|
host: 0.0.0.0
|
||||||
base_url: ""
|
base_url: ""
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
sonar.projectKey=phundrak-backend
|
sonar.projectKey=bakit
|
||||||
|
|||||||
@@ -3,5 +3,5 @@
|
|||||||
#[cfg(not(tarpaulin_include))]
|
#[cfg(not(tarpaulin_include))]
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() -> Result<(), std::io::Error> {
|
async fn main() -> Result<(), std::io::Error> {
|
||||||
phundrak_dot_com_backend::run(None).await
|
bakit::run(None).await
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user