add readme, gitignore
This commit is contained in:
parent
7b80847e65
commit
50c03b0ab7
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
target/*
|
||||||
|
dist/*
|
1334
Cargo.lock
generated
Normal file
1334
Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,5 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "knock-knock-yew"
|
name = "questions-yew"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
|
36
README.md
Normal file
36
README.md
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
# Questions - A yew frontend WASM application
|
||||||
|
This is a frontend web application intended to provide an interface to the APIs provided by my [questions API rust server](https://gitlab.cecs.pdx.edu/djw2/rust-web). This application is a fork of the course [knock-knock-yew](https://github.com/pdx-cs-rust-web/knock-knock-yew) frontend, primarily authored by Bart Massey
|
||||||
|
|
||||||
|
## Contents
|
||||||
|
|
||||||
|
I'll do my best to keep these contents up-to-date as changes are made to the source code
|
||||||
|
|
||||||
|
* Setup
|
||||||
|
* Dependency overview
|
||||||
|
* Source overview
|
||||||
|
* Looking ahead
|
||||||
|
|
||||||
|
## Setup
|
||||||
|
First, the [questions API rust server](https://gitlab.cecs.pdx.edu/djw2/rust-web) should be running on a known address and port
|
||||||
|
```
|
||||||
|
rustup update
|
||||||
|
rustup target add wasm32-unknown-unknown
|
||||||
|
cargo install trunk --locked
|
||||||
|
cargo build
|
||||||
|
```
|
||||||
|
|
||||||
|
## Run
|
||||||
|
```
|
||||||
|
trunk serve
|
||||||
|
```
|
||||||
|
|
||||||
|
### Dependency overview
|
||||||
|
|
||||||
|
#### std
|
||||||
|
#### [Yew](https://crates.io/crates/yew)
|
||||||
|
|
||||||
|
### Source overview
|
||||||
|
|
||||||
|
#### `src/main.rs`
|
||||||
|
|
||||||
|
### Looking ahead
|
@ -1,7 +1,7 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<title>Knock Knock!</title>
|
<title>Questions and Answers</title>
|
||||||
<link data-trunk rel="css" href="index.css" />
|
<link data-trunk rel="css" href="index.css" />
|
||||||
</head>
|
</head>
|
||||||
<body></body>
|
<body></body>
|
||||||
|
Reference in New Issue
Block a user