Skip to content
/ rch Public

imageboard with backend in Rust and frontend in Vue

License

Notifications You must be signed in to change notification settings

Nikita-str/rch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hi! I mean sowwy for bad English.

About

Anonymous imageboard with backend in Rust and frontend in Vue.

Getting Started

You should have cargo(Rust), npm and Python 3*1 installed.

First of all we need to build frontend:

  1. cd ./front/vue_x/ : open frontend folder
  2. npm install : install dependencies
  3. npm run build : build frontend

Then build backend:

  1. cd ../../ : return to repo root folder
  2. cd ./back/server/ : open backend folder
  3. cargo run -r : build and run backend

If you need you can also auto create some threads and posts:

  1. cd ./test/REST/ : open backend REST test folder
  2. for example python ./create_a.py : create a thread on /a/ board and make some posts there (no pics)

Backend config can be changed here.

*1: Python 3 only used on frontend building and it's need only to save users' posted pics between rebuilding frontend. So if you don't need to save it then just remove in frontend config file "prebuild" and "postbuild" script commands. And after it there will be no Python 3 dependencies.

Admin Imageboard Control

You can do it on /~~page~~/~~ctrl~~/-pages. Currently for any action you should use single action pwd(sends hash of it) from file back\server\saves\aux\single_pwds.txt(path by default). Currently here you can save imageboard state, load its state, add board, del post, del thread, and shutdown.

CLI

Currently there is only one run arg for save loading on start

  • --load <save_name>
  • --load <save_name> --load--single-file if imageboard state saved in single-file format
You can run imageboard with a presave where are few already boards added by:
cargo run -r -- --load STD_SAVE_A --load-single-file

How it looks

/rp/ screen example

thread example

/rp/ pic view

pic view example

And preview.mp4: server side delays are emulated here (run in dev mode)

Some other docs

About

imageboard with backend in Rust and frontend in Vue

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published