feat: Add basic project structure and configuration

- Add `.env.template` file for environment variable configuration.
- Add `.gitignore` file to ignore generated files and IDE artifacts.
- Add `Cargo.toml` file specifying project dependencies.
- Add basic project documentation in `README.md` and configuration
  guide in `docs/configuration.md`.
- Add Gitea authentication guide in `docs/gitea-auth.md`.
- Add installation guide in `docs/installation.md`.
- Add MVC architecture guide in `docs/mvc.md`.
- Add views guide in `docs/views.md`.
This commit is contained in:
Mahmoud Emad
2025-05-07 14:03:08 +03:00
parent 84d357f0c5
commit 645a387528
26 changed files with 2646 additions and 1 deletions

29
.env.template Normal file
View File

@@ -0,0 +1,29 @@
# Server Configuration
APP__SERVER__HOST=127.0.0.1
APP__SERVER__PORT=9999
APP__SERVER__WORKERS=4
# Templates Configuration
APP__TEMPLATES__DIR=./src/views
# Authentication
JWT_SECRET=your_jwt_secret_key
JWT_EXPIRATION_HOURS=24
SECRET_KEY=your_secret_key_for_session_cookies_at_least_32_bytes_long
# OAuth Configuration - Gitea
GITEA_CLIENT_ID=your_client_id
GITEA_CLIENT_SECRET=your_client_secret
GITEA_INSTANCE_URL=https://your-gitea-instance.com
APP_URL=http://localhost:9999
# Database Configuration
APP__DATABASE__URL=postgres://user:password@localhost/hostbasket
APP__DATABASE__POOL_SIZE=5
# Logging
RUST_LOG=info
# Application Environment
APP_ENV=development
APP_CONFIG=config/local.toml