Website for the Fellowship of the Whale FRC team
Install npm dependencies with
npm install
add the WASM build target
rustup target add wasm32-unknown-unknown
build and serve with trunk (should be run in release mode although not strictly necessary)
trunk serve --release
Start mysql service
service mysql start
Configure root user
sudo mysql
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '<ENTER-PASSWORD-HERE>';
quit
Create fotw database
mysql -u root -p
CREATE DATABASE fotw;
quit
cargo run
curl -X POST 127.0.0.1:8084/post
-H 'Content-Type: application/json'
-d '{"id":"123", "title":"Epic Title", "author":"Super cool author", "categories":"UsefulCategory", "body":"This post\'s body is super cool"}'