Skip to content

Commit 67eb6e6

Browse files
committed
Initial backend/frontend structure
1 parent f8d9238 commit 67eb6e6

File tree

173 files changed

+107633
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

173 files changed

+107633
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.DS_Store
2+
.env

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,29 @@
11
# sage-playground
2+
23
Your playground to get started with the Substrate Asset Gaming Framework (SAGE)
4+
5+
## Backend Quickstart
6+
7+
To quickly launch a testing node:
8+
9+
```sh
10+
cd backend
11+
cargo build-sage-node
12+
./target/release/sage-playground-node --dev
13+
```
14+
15+
Check [here](/backend/README.md) for more details on the backend.
16+
17+
## Frontend Quickstart
18+
19+
To run the frontend:
20+
21+
```sh
22+
cd frontend
23+
pnpm i
24+
pnpm dev
25+
```
26+
27+
Make sure the node is running so the connection works.
28+
29+
Check [here](/frontend/README.md) for more details on the frontend.

backend/.cargo/config.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[alias]
2+
build-sage-node = "build --release --no-default-features --bin sage-playground-node"
3+
build-sage-node-benchmarks = [ "build-sage-node", "--features", "runtime-benchmarks" ]
4+
5+
[target.'cfg(feature = "cargo-clippy")']
6+
rustflags = [
7+
"-Aclippy::derive_partial_eq_without_eq",
8+
"-Aclippy::too_many_arguments",
9+
"-Aclippy::type_complexity",
10+
"-Aclippy::uninlined-format-args",
11+
"-Aclippy::unnecessary_cast",
12+
"-Aclippy::large_enum_variant",
13+
]

backend/.cargo/zepter.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
version:
2+
format: 1
3+
# Minimum version of the binary that is expected to work. This is just for printing a nice error
4+
# message when someone tries to use an older version.
5+
binary: 0.13.2
6+
7+
# The examples in this file assume crate `A` to have a dependency on crate `B`.
8+
workflows:
9+
check:
10+
- [
11+
'lint',
12+
# Check that `A` activates the features of `B`.
13+
'propagate-feature',
14+
# These are the features to check:
15+
'--features=try-runtime,runtime-benchmarks,std',
16+
# Do not try to add a new section into `[features]` of `A` only because `B` expose that feature. There are edge-cases where this is still needed, but we can add them manually.
17+
'--left-side-feature-missing=ignore',
18+
# Ignore the case that `A` it outside of the workspace. Otherwise it will report errors in external dependencies that we have no influence on.
19+
'--left-side-outside-workspace=ignore',
20+
# Some features imply that they activate a specific dependency as non-optional. Otherwise the default behaviour with a `?` is used.
21+
'--feature-enables-dep=try-runtime:frame-try-runtime,runtime-benchmarks:frame-benchmarking',
22+
# Auxillary flags:
23+
'--offline',
24+
'--locked',
25+
'--show-path',
26+
'--quiet',
27+
]
28+
# Same as `check`, but with the `--fix` flag.
29+
default:
30+
- [ $check.0, '--fix' ]
31+
32+
# Will be displayed when any workflow fails:
33+
help:
34+
text: |
35+
This repo uses the Zepter CLI to detect abnormalities in the feature configuration.
36+
It looks like one more more checks failed; please check the console output. You can try to automatically address them by running `zepter`.
37+
Otherwise please ask directly in the Merge Request, GitHub Discussions or on Matrix Chat, thank you.
38+
links:
39+
- "https://github.com/ggwpez/zepter"

backend/.gitignore

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
## File system
2+
.DS_Store
3+
desktop.ini
4+
5+
## Editor
6+
*.swp
7+
*.swo
8+
Session.vim
9+
.cproject
10+
.idea
11+
*.iml
12+
.vscode
13+
.project
14+
.favorites.json
15+
.settings/
16+
.vs/
17+
18+
## Tool
19+
.valgrindrc
20+
# Included because it is part of the test case
21+
!/tests/run-make/thumb-none-qemu/example/.cargo
22+
23+
## Configuration
24+
/config.toml
25+
/Makefile
26+
config.mk
27+
config.stamp
28+
no_llvm_build
29+
30+
## Build
31+
/dl/
32+
/doc/
33+
build/
34+
/dist/
35+
/target
36+
37+
# Before adding new lines, see the comment at the top.

0 commit comments

Comments
 (0)