forustm
forustm copied to clipboard
A forum for rust community, using Rust, and Sapper.
Forustm
Forum for Rust Community, developed in Rust, with Sapper.
Now works on Rust.cc
How to run it
Prepare
- postgresql 9.6+;
- redis;
- configure pg and redis connection addresses and ports in .env;
- execute
cargo install diesel_cli;
Steps
- execute
diesel setup; cargo build;- configure nginx as the
docs/template_nginx.confdiscribes, and start nginx; cargo run --bin forustm_web;- open a new tab, and
cargo run --bin forustm_api; - visit
http://localhost;
Configurate Index Page Sections
- login with
[email protected](default password isadmin, you can modify it after logined); - visit
http://localhost/admin/sectionto create new sections; - use
psqlto find the ids(uuids) of new sections in pg; - use
redis-cli, connected to redis,select 1, andrpush cate_sections {uuid}, repeat it; - and
rpush proj_sections {uuid}, repeat it;
Configurate Index Page Public Notice
- in redis,
select 1; hset pub_noticetitle xxxxxxxxxx`;hset pub_notice desc xxxxxxxxxxxxxxxxxxxxx;
Now, visit http://localhost again. That's all.
Good lucky!