Skip to content

Commit 3364a43

Browse files
0xvasanthitsparser
andauthored
Golem - executable APP (#1216)
* Added the Application release yaml * Single executable code for Golem * Code Lint Verified and console log removed * Added app to the cargo.toml * Updated the Publish with the main branch handle * Bumped the github action version * updated the path of the desktop * updated the path of the desktop * updated the path of the desktop * Removed the tauri from the member and moved to exlustion --------- Co-authored-by: eenthiran <its62d2@gmail.com>
1 parent 6012e67 commit 3364a43

File tree

192 files changed

+32983
-1
lines changed

Some content is hidden

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

192 files changed

+32983
-1
lines changed

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ members = [
1818
"golem-worker-service",
1919
"integration-tests",
2020
"wasm-ast",
21-
"wasm-rpc",
21+
"wasm-rpc"
2222
]
2323

2424
exclude = [
@@ -67,6 +67,7 @@ exclude = [
6767
"test-components/wasi-http-incoming-request-handler-state",
6868
"test-components/write-stderr",
6969
"test-components/write-stdout",
70+
"app/desktop/src-tauri"
7071
]
7172

7273
[workspace.dependencies]

app/desktop/.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

app/desktop/.prettierrc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"semi": true,
3+
"singleQuote": false,
4+
"trailingComma": "all",
5+
"bracketSpacing": true,
6+
"jsxBracketSameLine": false,
7+
"arrowParens": "avoid",
8+
"proseWrap": "preserve",
9+
"endOfLine": "lf",
10+
"overrides": [
11+
{
12+
"files": "*.tsx",
13+
"options": {
14+
"parser": "typescript"
15+
}
16+
}
17+
]
18+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"hash": "cee96ea1",
3+
"configHash": "69ca925a",
4+
"lockfileHash": "69742859",
5+
"browserHash": "7a651483",
6+
"optimized": {},
7+
"chunks": {}
8+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"type": "module"
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["tauri-apps.tauri-vscode", "rust-lang.rust-analyzer"]
3+
}

app/desktop/README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#### Golem GUI Development
2+
3+
## Overview
4+
5+
Golem GUI is a web application that allows users to interact with the Golem network.
6+
7+
## Getting Started
8+
9+
To get started with Golem GUI, follow these steps:
10+
11+
1. Clone the repository:
12+
13+
```bash
14+
git clone https://github.com/golemcloud/golem.git
15+
```
16+
17+
2. Install the dependencies:
18+
19+
```bash
20+
cd golem/crates/webapp
21+
npm install
22+
```
23+
24+
3. Start the development server:
25+
26+
```bash
27+
npm run tauri dev
28+
```
29+
30+
Application will be opened as window.
31+
32+
## Contributing
33+
34+
We welcome contributions to the Golem GUI project. If you'd like to contribute, please follow these steps:
35+
36+
1. Fork the repository.
37+
2. Create a new branch for your changes.
38+
3. Make your changes and commit them.
39+
4. Push your changes to your forked repository.
40+
5. Create a pull request to the main repository.

app/desktop/components.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "new-york",
4+
"rsc": false,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "tailwind.config.js",
8+
"css": "src/index.css",
9+
"baseColor": "zinc",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"aliases": {
14+
"components": "@/components",
15+
"utils": "@/lib/utils",
16+
"ui": "@/components/ui",
17+
"lib": "@/lib",
18+
"hooks": "@/hooks"
19+
},
20+
"iconLibrary": "lucide"
21+
}

app/desktop/eslint.config.js

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import js from "@eslint/js";
2+
import globals from "globals";
3+
import reactHooks from "eslint-plugin-react-hooks";
4+
import reactRefresh from "eslint-plugin-react-refresh";
5+
import tseslint from "typescript-eslint";
6+
import prettier from "eslint-config-prettier";
7+
8+
export default tseslint.config(
9+
{ ignores: ["dist"] },
10+
{
11+
extends: [
12+
js.configs.recommended,
13+
...tseslint.configs.recommended,
14+
prettier,
15+
],
16+
files: ["**/*.{ts,tsx}"],
17+
languageOptions: {
18+
ecmaVersion: 2020,
19+
globals: globals.browser,
20+
},
21+
plugins: {
22+
"react-hooks": reactHooks,
23+
"react-refresh": reactRefresh,
24+
},
25+
rules: {
26+
...reactHooks.configs.recommended.rules,
27+
"react-refresh/only-export-components": [
28+
"warn",
29+
{ allowConstantExport: true },
30+
],
31+
},
32+
},
33+
);

app/desktop/index.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8"/>
5+
<link href="/logo.svg" rel="icon" type="image/svg+xml"/>
6+
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
7+
<title>Golem GUI</title>
8+
</head>
9+
10+
<body>
11+
<div id="root"></div>
12+
<script src="/src/main.tsx" type="module"></script>
13+
</body>
14+
</html>

0 commit comments

Comments
 (0)