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:
51
src/views/home/about.html
Normal file
51
src/views/home/about.html
Normal file
@@ -0,0 +1,51 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}About - Hostbasket{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<h1>About Hostbasket</h1>
|
||||
<p class="lead">A web application framework built with Actix Web and Rust.</p>
|
||||
<hr>
|
||||
|
||||
<h2>Features</h2>
|
||||
<ul>
|
||||
<li><strong>Actix Web</strong>: A powerful, pragmatic, and extremely fast web framework for Rust</li>
|
||||
<li><strong>Tera Templates</strong>: A template engine inspired by Jinja2 and Django templates</li>
|
||||
<li><strong>Bootstrap 5.3.5</strong>: A popular CSS framework for responsive web design</li>
|
||||
<li><strong>MVC Architecture</strong>: Clean separation of concerns with Models, Views, and Controllers
|
||||
</li>
|
||||
<li><strong>Middleware Support</strong>: Custom middleware for request timing and security headers</li>
|
||||
<li><strong>Configuration Management</strong>: Flexible configuration system with environment variable
|
||||
support</li>
|
||||
<li><strong>Static File Serving</strong>: Serve CSS, JavaScript, and other static assets</li>
|
||||
</ul>
|
||||
|
||||
<h2>Project Structure</h2>
|
||||
<pre>
|
||||
hostbasket/
|
||||
├── Cargo.toml # Project dependencies
|
||||
├── src/
|
||||
│ ├── config/ # Configuration management
|
||||
│ ├── controllers/ # Request handlers
|
||||
│ ├── middleware/ # Custom middleware components
|
||||
│ ├── models/ # Data models and business logic
|
||||
│ ├── routes/ # Route definitions
|
||||
│ ├── static/ # Static assets (CSS, JS, images)
|
||||
│ │ ├── css/ # CSS files including Bootstrap
|
||||
│ │ ├── js/ # JavaScript files
|
||||
│ │ └── images/ # Image files
|
||||
│ ├── utils/ # Utility functions
|
||||
│ ├── views/ # Tera templates
|
||||
│ └── main.rs # Application entry point
|
||||
</pre>
|
||||
|
||||
<h2>Getting Started</h2>
|
||||
<p>To get started with Hostbasket, check out the <a target="_blank"
|
||||
href="https://git.ourworld.tf/herocode/rweb_starterkit">GitHub repository</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user