Skip to content

Commit a062498

Browse files
committed
feat: first commit
0 parents  commit a062498

29 files changed

+5591
-0
lines changed

.github/workflows/main.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: 'Create Releases'
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
publish-tauri:
10+
permissions:
11+
contents: write
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
include:
16+
- platform: 'macos-latest' # for Arm based macs (M1 and above).
17+
args: '--target aarch64-apple-darwin'
18+
- platform: 'macos-latest' # for Intel based macs.
19+
args: '--target x86_64-apple-darwin'
20+
- platform: 'ubuntu-22.04' # for linux
21+
args: ''
22+
- platform: 'windows-latest' # for windows
23+
args: ''
24+
25+
runs-on: ${{ matrix.platform }} # cross-platform compilation
26+
steps:
27+
- name: Checkout repo
28+
uses: actions/checkout@v4
29+
30+
- name: Install pnpm
31+
uses: pnpm/action-setup@v4
32+
with:
33+
version: 8
34+
run_install: false
35+
36+
- name: Install Node.js
37+
uses: actions/setup-node@v4
38+
with:
39+
node-version: 20
40+
cache: 'pnpm'
41+
42+
- name: install Rust stable
43+
uses: dtolnay/rust-toolchain@stable
44+
with:
45+
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
46+
47+
- name: install dependencies (ubuntu only)
48+
if: matrix.platform == 'ubuntu-22.04' # This must match the platform value defined above.
49+
run: |
50+
sudo apt-get update
51+
sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
52+
53+
- name: install frontend dependencies
54+
run: pnpm install
55+
56+
- name: Create Env File
57+
run: echo "hello there, no envs yet"
58+
59+
- uses: tauri-apps/tauri-action@v0
60+
env:
61+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
62+
with:
63+
tagName: app-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version.
64+
releaseName: 'App v__VERSION__'
65+
releaseBody: 'See the assets to download this version and install.'
66+
releaseDraft: true
67+
prerelease: false
68+
args: ${{ matrix.args }}

.gitignore

Lines changed: 170 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,170 @@
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?
25+
26+
27+
# Created by https://www.toptal.com/developers/gitignore/api/node
28+
# Edit at https://www.toptal.com/developers/gitignore?templates=node
29+
30+
### Node ###
31+
# Logs
32+
logs
33+
*.log
34+
npm-debug.log*
35+
yarn-debug.log*
36+
yarn-error.log*
37+
lerna-debug.log*
38+
.pnpm-debug.log*
39+
40+
# Diagnostic reports (https://nodejs.org/api/report.html)
41+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
42+
43+
# Runtime data
44+
pids
45+
*.pid
46+
*.seed
47+
*.pid.lock
48+
49+
# Directory for instrumented libs generated by jscoverage/JSCover
50+
lib-cov
51+
52+
# Coverage directory used by tools like istanbul
53+
coverage
54+
*.lcov
55+
56+
# nyc test coverage
57+
.nyc_output
58+
59+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
60+
.grunt
61+
62+
# Bower dependency directory (https://bower.io/)
63+
bower_components
64+
65+
# node-waf configuration
66+
.lock-wscript
67+
68+
# Compiled binary addons (https://nodejs.org/api/addons.html)
69+
build/Release
70+
71+
# Dependency directories
72+
node_modules/
73+
jspm_packages/
74+
75+
# Snowpack dependency directory (https://snowpack.dev/)
76+
web_modules/
77+
78+
# TypeScript cache
79+
*.tsbuildinfo
80+
81+
# Optional npm cache directory
82+
.npm
83+
84+
# Optional eslint cache
85+
.eslintcache
86+
87+
# Optional stylelint cache
88+
.stylelintcache
89+
90+
# Microbundle cache
91+
.rpt2_cache/
92+
.rts2_cache_cjs/
93+
.rts2_cache_es/
94+
.rts2_cache_umd/
95+
96+
# Optional REPL history
97+
.node_repl_history
98+
99+
# Output of 'npm pack'
100+
*.tgz
101+
102+
# Yarn Integrity file
103+
.yarn-integrity
104+
105+
# dotenv environment variable files
106+
.env
107+
.env.development.local
108+
.env.test.local
109+
.env.production.local
110+
.env.local
111+
112+
# parcel-bundler cache (https://parceljs.org/)
113+
.cache
114+
.parcel-cache
115+
116+
# Next.js build output
117+
.next
118+
out
119+
120+
# Nuxt.js build / generate output
121+
.nuxt
122+
dist
123+
124+
# Gatsby files
125+
.cache/
126+
# Comment in the public line in if your project uses Gatsby and not Next.js
127+
# https://nextjs.org/blog/next-9-1#public-directory-support
128+
# public
129+
130+
# vuepress build output
131+
.vuepress/dist
132+
133+
# vuepress v2.x temp and cache directory
134+
.temp
135+
136+
# Docusaurus cache and generated files
137+
.docusaurus
138+
139+
# Serverless directories
140+
.serverless/
141+
142+
# FuseBox cache
143+
.fusebox/
144+
145+
# DynamoDB Local files
146+
.dynamodb/
147+
148+
# TernJS port file
149+
.tern-port
150+
151+
# Stores VSCode versions used for testing VSCode extensions
152+
.vscode-test
153+
154+
# yarn v2
155+
.yarn/cache
156+
.yarn/unplugged
157+
.yarn/build-state.yml
158+
.yarn/install-state.gz
159+
.pnp.*
160+
161+
### Node Patch ###
162+
# Serverless Webpack directories
163+
.webpack/
164+
165+
# Optional stylelint cache
166+
167+
# SvelteKit build / generate output
168+
.svelte-kit
169+
170+
# End of https://www.toptal.com/developers/gitignore/api/node

.vscode/extensions.json

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+
}

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# hello-ipfs-user-node-front
2+
3+
This frontend application interacts with an IPFS node configured with the Kubo library and a local server. It also integrates with services provided by Hello.app. The frontend allows users to manage and adjust configurations through an intuitive user interface.
4+
5+
## Requirements
6+
7+
- Your preferred development environment, e.g. [VS Code](https://code.visualstudio.com/)
8+
- [Node.js](https://nodejs.org/en/) (minimum version 16.x), download the Long Term Support (LTS) version and install it.
9+
- pnpm (you can install it with `npm install -g pnpm` or `yarn global add pnpm`), visit [pnpm.io](https://pnpm.io/) for more information or trouble-shooting.
10+
- Tauri prerrequisites: [Tauri - Quick start](https://tauri.app/v1/guides/getting-started/prerequisites)
11+
12+
# Tauri + React + Typescript
13+
14+
## Setup
15+
16+
Once you have the prerequisites installed, follow these steps to get started:
17+
18+
- Clone this repository: `git clone https://github.com/Hello-Storage/hello-ipfs-user-node-front.git`
19+
- Open the repository in VS Code
20+
- Run `pnpm install` in the repository root folder to install the dependencies
21+
- Run `pnpm dev` in the repository root folder to start the development server

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 rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Tauri + React + Typescript</title>
8+
</head>
9+
10+
<body>
11+
<div id="root"></div>
12+
<script type="module" src="/src/main.tsx"></script>
13+
</body>
14+
</html>

package.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "hello-node",
3+
"private": true,
4+
"version": "0.0.0",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite",
8+
"build": "tsc && vite build",
9+
"preview": "vite preview",
10+
"tauri": "tauri"
11+
},
12+
"dependencies": {
13+
"react": "^18.2.0",
14+
"react-dom": "^18.2.0",
15+
"@tauri-apps/api": "^1"
16+
},
17+
"devDependencies": {
18+
"@types/react": "^18.2.15",
19+
"@types/react-dom": "^18.2.7",
20+
"@vitejs/plugin-react": "^4.2.1",
21+
"typescript": "^5.2.2",
22+
"vite": "^5.3.1",
23+
"@tauri-apps/cli": "^1"
24+
}
25+
}

0 commit comments

Comments
 (0)