Skip to content

Commit

Permalink
Details README.md captions info - OK
Browse files Browse the repository at this point in the history
  • Loading branch information
KlosStepan committed Sep 11, 2023
1 parent ef10ddd commit 1570f8e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
# Demonstration project Next-ft-Wasm
We decided to use Next.js since it combines frontend and backend side of the project. We want to test Rust packages compiled to Wasm in various scenarios.
We decided to use Next.js since it combines frontend and backend side of the project and it can be useful for further extending and fiddle. We want to test Rust packages compiled to Wasm in various scenarios.
--> http://wasm.stkl.cz

## Modules demonstration
We have this modules in our aplication:
- [x] Hello Wasm, Rust < - > JavaScript intercommunication
- [ ] Mock authentication middleware
- [x] Hello Wasm, `Rust` <-> `JavaScript` intercommunication,
- [ ] Mock Authentication Middleware, `module` running in separate thread for all contexts - `TODO`.

## Build & run
Run these commands to build and push the application to dockerhub.
```
docker build -t stepanklos/wasm .
docker run -p 3000:3000 stepanklos/wasm
docker push stepanklos/wasm
```
```
Manually triggered automatic deployment in our GitHub Action [workflow](https://github.com/KlosStepan/Next-ft-Wasm/blob/main/.github/workflows/build-push-deploy.yaml).
# OLD README

This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
Expand Down
4 changes: 2 additions & 2 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ export default function Home() {
<main className="flex min-h-screen flex-col items-center justify-between p-24">
{/*<div onClick={(e) => { handleClick(e) }}>|FIDDLE STUFF|</div>*/}
{/*<Click />*/}
<div><b>Rust Hello Wasm</b>, package: <a href="https://www.npmjs.com/package/pwnrusthellowasm" target="_blank">pwnrusthellowasm</a></div>
<div><b>Rust/Wasm Hello Wasm</b>, package: <a href="https://www.npmjs.com/package/pwnrusthellowasm" target="_blank">pwnrusthellowasm</a></div>
<div>
<button onClick={handleGreetClick}><u>|Greet|</u></button>
{' '}
<button onClick={handleGreetStaticClick}><u>|Greet Static|</u></button> {'/'}{'/'}{'<'}-- Static console logs
</div>
<hr />
<div><b>Rust Auth Mock Middleware</b>, package: <a href="https://www.npmjs.com/package/" target="_blank">pwnauthmockmiddleware</a> </div>
<div><b>Rust/Wasm Mock Authentication Middleware</b>, package: <a href="https://www.npmjs.com/package/" target="_blank">pwnauthmockmiddleware</a> </div>
<div>TODO</div>
<div>
{/*<hr style={{ height: "1px", border: "none", color: "#333", backgroundColor: "black" }} />*/}
Expand Down

0 comments on commit 1570f8e

Please sign in to comment.