| Crates.io | huxi-server |
| lib.rs | huxi-server |
| version | 0.9.0 |
| created_at | 2023-07-19 08:20:25.327511+00 |
| updated_at | 2024-09-04 03:10:18.287471+00 |
| description | A site engine for web applications, based on Axum and PostgreSQL |
| homepage | http://www.huxi.fun |
| repository | https://github.com/huxifun/huxi-server |
| max_upload_size | |
| id | 920137 |
| size | 2,245,251 |
Huxi Server is a site engine for web applications, based on Axum and PostgreSQL.
The document in English is being written, and the following is in Chinese.
Demo: http://www.huxi.fun
Huxi(呼吸) Server 是用Rust编写的网站系统,主要用于构建网站应用。
用户注册登录
电子邮件验证
博客文章
微博
好书
图片
站内信箱
axummaudbootstrapPostgreSQL 和 sqlxwww,导入 pgsql/setup.sql,创建表psql www < pgsql/setup.sql
详细说明见 pgsql/README.md。
cp examples/config.toml my-config.toml
编辑 my-config.toml,其中SMTP设置用于用户注册。
示例:
export WWW_CONFIG=/home/huxi/has/my-config.toml
export WWW_PORT=3000
export DATABASE_URL=postgres://huxi:12345678@localhost/www
cargo run
打开网址: http://localhost:3000
注册用户后,在pgsql中,修改 users.i_role = 5, 例如:
update users set i_role=5 where name='admin';
见 examples/nginx.conf
川月(huxifun@sina.com)