Skip to content

Commit 9e35774

Browse files
committed
Merge branch 'feature/add-hello-world' of https://github.com/iExecBlockchainComputing/documentation into feature/add-hello-world
2 parents 9fefed0 + 248071b commit 9e35774

File tree

9 files changed

+144
-36
lines changed

9 files changed

+144
-36
lines changed

README.md

Lines changed: 131 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,151 @@
1-
# iExec Tools documentation
1+
# iExec Documentation
22

3-
This is the source repository of the [iExec documentation](https://docs.iex.ec)
3+
## 📋 Prerequisites
44

5-
## Prerequisites
5+
- **Node.js**: Version 22 or higher
6+
- **npm**: Comes bundled with Node.js
67

7-
- Node 22
8+
## ⚙️ Configuration
89

9-
## Run app
10+
### Environment Variables (Optional)
1011

12+
Some features of the application require environment variables. This
13+
configuration is optional and only needed if you plan to work with Hello World
14+
pages.
15+
16+
Create a `.env` file at the root of the project using the provided
17+
`.env.example` as a template:
18+
19+
```bash
20+
cp .env.example .env
21+
```
22+
23+
Then fill in the required values:
24+
25+
```env
26+
VITE_REOWN_PROJECT_ID=your_project_id_here
1127
```
28+
29+
#### Getting your VITE_REOWN_PROJECT_ID
30+
31+
To obtain your `VITE_REOWN_PROJECT_ID`, follow these steps:
32+
33+
1. Go to [https://dashboard.reown.com/](https://dashboard.reown.com/)
34+
2. Create an account if you don't have one already
35+
3. Once logged in, click on "Create Project" or "New Project"
36+
4. Fill in your project information:
37+
- Project name
38+
- Description (optional)
39+
- Website URL (optional)
40+
5. Once the project is created, copy the "Project ID" displayed in the project
41+
details
42+
6. Paste this ID in your `.env` file as the value for `VITE_REOWN_PROJECT_ID`
43+
44+
## 🚀 Getting Started
45+
46+
### Installation
47+
48+
Install the project dependencies:
49+
50+
```bash
1251
npm install
52+
```
53+
54+
### Development Server
55+
56+
Start the development server:
57+
58+
```bash
1359
npm run dev
1460
```
1561

16-
## Contributing
62+
The documentation site will be available at `http://localhost:3000` (or the port
63+
shown in your terminal).
64+
65+
### Building for Production
66+
67+
To build the project for production:
68+
69+
```bash
70+
npm run build
71+
```
72+
73+
## 🤝 Contributing
74+
75+
We welcome contributions to improve the iExec documentation! Please follow these
76+
steps to contribute:
77+
78+
### 1. Fork the Repository
79+
80+
Fork this repository and ensure you're working on the `main` branch:
81+
82+
[![fork-button](./src/public/fork-button.png)](https://github.com/iExecBlockchainComputing/documentation/fork)
83+
84+
### 2. Set Up Your Development Environment
85+
86+
1. Clone your forked repository:
87+
88+
```bash
89+
git clone https://github.com/YOUR_USERNAME/documentation.git
90+
cd documentation
91+
```
92+
93+
2. Install dependencies:
94+
95+
```bash
96+
npm install
97+
```
98+
99+
3. Start the development server:
100+
```bash
101+
npm run dev
102+
```
103+
104+
### 3. Make Your Changes
105+
106+
1. Create a new branch for your feature/fix:
107+
108+
```bash
109+
git checkout -b feature/your-feature-name
110+
```
111+
112+
2. Make your changes to the documentation
113+
3. Test your changes locally to ensure they work as expected
114+
115+
### 4. Submit Your Changes
116+
117+
1. Stage and commit your changes with a descriptive message:
17118

18-
To keep the contribution process smooth, please read this small guide.
119+
```bash
120+
git add .
121+
git commit -m "Add: descriptive commit message"
122+
```
19123

20-
### Fork
124+
2. Push your changes to your forked repository:
21125

22-
Fork the repo and be sure to be on `main` branch
126+
```bash
127+
git push origin feature/your-feature-name
128+
```
23129

24-
[![fork-button](./public/fork-button.png)](https://github.com/iExecBlockchainComputing/documentation/fork)
130+
3. Open a pull request from your feature branch to our `main` branch
25131

26-
### Contribute
132+
### 5. Review Process
27133

28-
Apply your changes on your forked branch, stage them and commit them with a
29-
descriptive commit message.
134+
> **💡 Tips:**
135+
>
136+
> - You can open a draft pull request and mark it as "Ready for review" once
137+
> you're satisfied with the preview
138+
> - All pull requests are reviewed by our team before being merged
139+
> - Feel free to ask questions in the pull request if you need clarification
30140
31-
Push your changes to your forked branch.
141+
## 📄 License
32142

33-
### PR time
143+
This project is part of the iExec ecosystem. Please refer to the main iExec
144+
repositories for licensing information.
34145

35-
Open a pull request from your forked branch to our `main` branch.
146+
## 🆘 Support
36147

37-
> _**Tips:**_
38-
> You can open a draft pull request and set it to "Ready for review" once you
39-
> are happy with the preview. Opened pull requests will be reviewed by the team
40-
> and merged once approved.
148+
- 📖 [Documentation](https://docs.iex.ec)
149+
- 💬 [Discord Community](https://discord.com/invite/pbt9m98wnU)
150+
- 🐛
151+
[Issue Tracker](https://github.com/iExecBlockchainComputing/documentation/issues)

src/components/AddressChip.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div
3-
class="bg-grey-800 flex shrink-0 items-center gap-2 rounded-[30px] px-3 py-2"
3+
class="flex shrink-0 items-center gap-2 rounded-[30px] bg-gray-800 px-3 py-2 text-white"
44
>
55
<div class="text-primary text-sm font-medium">{{ displayAddress }}</div>
66
<div

src/components/ui/Button.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<component
33
:is="as || 'button'"
44
:type="as === 'button' || !as ? 'button' : undefined"
5-
class="inline-flex h-11 cursor-pointer items-center justify-center rounded-lg border-none bg-[#fcd15a]! px-5 py-2 text-base font-medium text-[#1e1e1e]! no-underline! transition-all! duration-200 hover:-translate-y-0.5 hover:transform hover:bg-[#ffb74d]! hover:shadow-md focus:shadow-[0_0_0_2px_rgba(252,209,90,0.3)] focus:outline-none disabled:cursor-not-allowed disabled:opacity-60"
5+
class="inline-flex h-11 cursor-pointer items-center justify-center rounded-lg border-none bg-[#fcd15a]! px-5! py-2 text-base font-medium text-[#1e1e1e]! no-underline! transition-all! duration-200 hover:-translate-y-0.5 hover:transform hover:bg-[#ffb74d]! hover:shadow-md focus:shadow-[0_0_0_2px_rgba(252,209,90,0.3)] focus:outline-none disabled:cursor-not-allowed disabled:opacity-60"
66
v-bind="$attrs"
77
>
88
<slot />

src/modules/helloWorld/GrantAccess.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
<Button
2828
:disabled="!isWalletConnected || isLoadingGrant"
2929
@click="grantAccess"
30-
class="w-full"
3130
data-track="grantAccess"
3231
>
3332
{{ isLoadingGrant ? 'Processing...' : 'Grant Access' }}

src/modules/helloWorld/ProtectData.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
<Button
3939
:disabled="!isWalletConnected || isLoadingProtect"
4040
@click="protectData"
41-
class="w-full"
4241
data-track="protectData"
4342
>
4443
{{ isLoadingProtect ? 'Processing...' : 'Protect Data' }}

src/overview/helloWorld.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,29 +90,29 @@ Before you begin, make sure you have:
9090
🦊 Ethereum Wallet
9191
<InfoIcon tooltip="Required to interact with iExec sidechain Bellecour features, manage your data access permissions, and handle transactions on the iExec platform" />
9292
</div>
93-
<a target="_blank" href="https://chromewebstore.google.com/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn" class="no-underline text-sm ml-auto hover:underline">Metamask Download →</a>
93+
<a target="_blank" href="https://chromewebstore.google.com/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn" class="no-underline! text-sm ml-auto hover:underline!">Metamask Download →</a>
9494
</div>
9595
<div class="flex items-center gap-4 text-left">
9696
<div class="flex items-center gap-1 flex-1 text-sm font-medium">
9797
📦 Node.js v20+
9898
<InfoIcon tooltip="Required runtime environment for running JavaScript code and managing project dependencies" />
9999
</div>
100-
<a target="_blank" href="https://nodejs.org/en/" class="no-underline text-sm ml-auto hover:underline">Download →</a>
100+
<a target="_blank" href="https://nodejs.org/en/" class="no-underline! text-sm ml-auto hover:underline!">Download →</a>
101101
</div>
102102
<div class="flex items-center gap-4 text-left">
103103
<div class="flex items-center gap-1 flex-1 text-sm font-medium">
104104
🐳 Docker installed
105105
<InfoIcon tooltip="Docker is essential for creating isolated containers that package your iExec applications with all dependencies. This ensures consistent and secure execution across different environments, especially in TEEs (Trusted Execution Environments)" />
106106
</div>
107-
<a target="_blank" href="https://docker.com/" class="no-underline text-sm ml-auto hover:underline">Download →</a>
107+
<a target="_blank" href="https://docker.com/" class="no-underline! text-sm ml-auto hover:underline!">Download →</a>
108108
</div>
109109

110110
<div class="flex items-center gap-4 text-left">
111111
<div class="flex items-center gap-1 flex-1 text-sm font-medium">
112112
🐳 DockerHub Account
113113
<InfoIcon tooltip="Needed to publish and manage your iExec applications in containers for secure deployment" />
114114
</div>
115-
<a target="_blank" href="https://hub.docker.com/" class="no-underline text-sm ml-auto hover:underline">Sign Up →</a>
115+
<a target="_blank" href="https://hub.docker.com/" class="no-underline! text-sm ml-auto hover:underline!">Sign Up →</a>
116116
</div>
117117
</div>
118118

src/overview/helloWorld/2-protectData.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup>
2-
// import ProtectData from '../../modules/helloWorld/ProtectData.vue';
2+
import ProtectData from '../../modules/helloWorld/ProtectData.vue';
33
</script>
44

55
# 🛡️ Let's protect data

src/overview/helloWorld/3-buildIApp.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,20 @@ Before getting started, make sure you have:
2525
<div class="flex items-center gap-1 flex-1 text-sm font-medium">
2626
📦 Node.js v20+
2727
</div>
28-
<a target="_blank" href="https://nodejs.org/en/" class="no-underline text-sm ml-auto hover:underline">Download →</a>
28+
<a target="_blank" href="https://nodejs.org/en/" class="no-underline! text-sm ml-auto hover:underline!">Download →</a>
2929
</div>
3030
<div class="flex items-center gap-4 text-left">
3131
<div class="flex items-center gap-1 flex-1 text-sm font-medium">
3232
🐳 Docker installed
3333
</div>
34-
<a target="_blank" href="https://docker.com/" class="no-underline text-sm ml-auto hover:underline">Download →</a>
34+
<a target="_blank" href="https://docker.com/" class="no-underline! text-sm ml-auto hover:underline!">Download →</a>
3535
</div>
3636

3737
<div class="flex items-center gap-4 text-left">
3838
<div class="flex items-center gap-1 flex-1 text-sm font-medium">
3939
🐳 DockerHub Account
4040
</div>
41-
<a target="_blank" href="https://hub.docker.com/" class="no-underline text-sm ml-auto hover:underline">Sign Up →</a>
41+
<a target="_blank" href="https://hub.docker.com/" class="no-underline! text-sm ml-auto hover:underline!">Sign Up →</a>
4242
</div>
4343
</div>
4444

src/overview/helloWorld/4-manageDataAccess.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
<script setup>
2-
//TODO: Fix it
3-
// import GrantAccess from '../../modules/helloWorld/GrantAccess.vue';
4-
// import { useWalletConnection } from '../../hooks/useWalletConnection.vue';
2+
import GrantAccess from '../../modules/helloWorld/GrantAccess.vue';
3+
import { useWalletConnection } from '../../hooks/useWalletConnection.vue';
54

6-
// const { protectedDataAddress } = useWalletConnection();
5+
const { protectedDataAddress } = useWalletConnection();
76
</script>
87

98
# 🔑 Manage Data Access

0 commit comments

Comments
 (0)