Skip to content

Commit

Permalink
Make whiskers run on fermyon cloud
Browse files Browse the repository at this point in the history
Switch backend from redis to key/value.

Signed-off-by: Adam Reese <[email protected]>
Signed-off-by: Brian H <[email protected]>
  • Loading branch information
adamreese authored and fibonacci1729 committed Jul 26, 2023
1 parent 10f6c64 commit ba50e8f
Show file tree
Hide file tree
Showing 33 changed files with 1,046 additions and 1,240 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ on:
jobs:
build:
runs-on: "ubuntu-latest"
services:
redis:
image: redis:7
ports:
- 6379:6379

steps:
- uses: actions/checkout@v2

Expand Down
96 changes: 0 additions & 96 deletions .github/workflows/restart.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.spin/
tally/target/*
scoreboard/target/*
highscore/target/*
Expand Down
10 changes: 1 addition & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,6 @@ build:
serve:
./serve.sh

.PHONY: start-redis
start-redis:
@docker start fw-redis &>/dev/null || docker run -p 6379:6379 --name fw-redis redis:7 &

.PHONY: stop-redis
stop-redis:
@docker stop fw-redis &>/dev/null

.PHONY: test-server
test-server:
./tests/test-server.sh
./tests/test-server.sh
16 changes: 0 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
Finicky Whiskers is comprised of a handful of microservices. Click on each item
below to see more details around a particular microservice.

- [morsel_event](./morsel_event/README.md)
- [redirect](./redirect/README.md)
- [scoreboard](./scoreboard/README.md)
- [session](./session/README.md)
Expand Down Expand Up @@ -37,15 +36,6 @@ make build-session

## To Run

Finicky Whiskers depends on a Redis instance to run. The default connection
string is `redis://localhost:6379`.

If you have Docker installed, you can start a redis container like so:

```console
make start-redis
```

The following command will serve the Finicky Whiskers site locally:

```console
Expand All @@ -54,12 +44,6 @@ make serve

This will run the game at [http://127.0.0.1:3000](http://127.0.0.1:3000)

When finished, the following command will stop the redis container:

```console
make stop-redis
```

## To Test

The following command will serve the site and then run the integration test
Expand Down
Binary file modified components/highscore.wasm
Binary file not shown.
Binary file removed components/morsel_event.wasm
Binary file not shown.
Binary file modified components/redirect.wasm
Binary file not shown.
Binary file added components/reset.wasm
Binary file not shown.
Binary file modified components/scoreboard.wasm
Binary file not shown.
Binary file modified components/tally.wasm
Binary file not shown.
12 changes: 6 additions & 6 deletions highscore/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions highscore/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ version = "0.1.0"
edition = "2021"

[lib]
crate-type = [ "cdylib" ]
crate-type = ["cdylib"]

[dependencies]
# Useful crate to handle errors.
Expand All @@ -23,4 +23,4 @@ rusty_ulid = "1.0.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"

[workspace]
[workspace]
1 change: 0 additions & 1 deletion morsel_event/.gitignore

This file was deleted.

Loading

0 comments on commit ba50e8f

Please sign in to comment.