Imageboard - Rust backend(Actix)
http://www.youtube.com/watch?v=CcgPEFh49TA
- Upload Images
- Each image is labeled with its contents and objects using Google's Vision API
- Anonymous comments on each image
-
Install Rust, check out - https://www.rust-lang.org/tools/install
-
Have Python3 installed, and Google's Vision API, like so:
python3 -m pip install --upgrade google-cloud-vision
-
Make sure you are on the Rust nightly build, like so:
rustup default nightly
-
Head over to src/secrets.rs and put your mongoDB url, make sure you have a database called "imageboard" and a collection called "images"
-
Head over to google cloud, create a new project, enable Vision API, create a service account and download the json.
-
Place the json in the main folder (outside of src), and rename it to "clientsecret.json"
-
You are set now! Just do
cargo build
thencargo run
. -
Go to "http://0.0.0.0:3000" in your browser