Nikita-str / rch

imageboard with backend in Rust and frontend in Vue
MIT License
2 stars 0 forks source link
imageboard rust vue vue3
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

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