Code Monkey home page Code Monkey logo

forustm's Introduction

Forustm

Forum for Rust Community, developed in Rust, with Sapper.

Now works on Rust.cc

How to run it

Prepare

  1. postgresql 9.6+;
  2. redis;
  3. configure pg and redis connection addresses and ports in .env;
  4. execute cargo install diesel_cli;

Steps

  1. execute diesel setup;
  2. cargo build;
  3. configure nginx as the docs/template_nginx.conf discribes, and start nginx;
  4. cargo run --bin forustm_web;
  5. open a new tab, and cargo run --bin forustm_api;
  6. visit http://localhost;

Configurate Index Page Sections

  1. login with [email protected] (default password is admin, you can modify it after logined);
  2. visit http://localhost/admin/section to create new sections;
  3. use psql to find the ids(uuids) of new sections in pg;
  4. use redis-cli, connected to redis, select 1, and rpush cate_sections {uuid}, repeat it;
  5. and rpush proj_sections {uuid}, repeat it;

Configurate Index Page Public Notice

  1. in redis, select 1;
  2. hset pub_noticetitle xxxxxxxxxx`;
  3. hset pub_notice desc xxxxxxxxxxxxxxxxxxxxx;

Now, visit http://localhost again. That's all.

Good lucky!

forustm's People

Contributors

3442853561 avatar dcjanus avatar driftluo avatar maicw4j avatar matrix-zhang avatar miketang84 avatar sunheartgh avatar weaming avatar yinyanlv avatar zhanghandong avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.