Forum for Rust Community, developed in Rust, with Sapper.
Now works on Rust.cc
- postgresql 9.6+;
- redis;
- configure pg and redis connection addresses and ports in .env;
- execute
cargo install diesel_cli;
- 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;
- 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;
- in redis,
select 1; hset pub_noticetitle xxxxxxxxxx`;hset pub_notice desc xxxxxxxxxxxxxxxxxxxxx;
Now, visit http://localhost again. That's all.
Good lucky!