Skip to content

hoehlrich/fellowship-of-the-whale

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Fellowship of the Whale

Website for the Fellowship of the Whale FRC team

Building frontened with trunk

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

Building backend

Setup mysql

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

Build api

cargo run

Make post request with curl

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"}'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages