@powerhousedao/academy 0.1.0-dev.6 → 2.5.0-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,51 @@
1
+ ## 2.5.0-dev.1 (2025-06-05)
2
+
3
+ This was a version bump only for @powerhousedao/academy to align it with other projects, there were no code changes.
4
+
5
+ ## 2.5.0-dev.0 (2025-06-04)
6
+
7
+ ### 🚀 Features
8
+
9
+ - **academy:** centralize husky & auto-update cli docs ([8c92e0bb1](https://github.com/powerhouse-inc/powerhouse/commit/8c92e0bb1))
10
+ - **ph-cli:** added setup-service command ([dfa082aa6](https://github.com/powerhouse-inc/powerhouse/commit/dfa082aa6))
11
+ - **scripts:** updated setup scripts ([9f7fa7644](https://github.com/powerhouse-inc/powerhouse/commit/9f7fa7644))
12
+ - enforce conventional commits ([faa49da40](https://github.com/powerhouse-inc/powerhouse/commit/faa49da40))
13
+ - removed scalars package ([d6f7059a7](https://github.com/powerhouse-inc/powerhouse/commit/d6f7059a7))
14
+ - enabled switchboard command ([5a9c467bf](https://github.com/powerhouse-inc/powerhouse/commit/5a9c467bf))
15
+ - removed scalars dependencies ([596aedbd5](https://github.com/powerhouse-inc/powerhouse/commit/596aedbd5))
16
+ - **builder-tools:** handle recursive objects in initial state generator ([c9eedcc43](https://github.com/powerhouse-inc/powerhouse/commit/c9eedcc43))
17
+ - **monorepo:** bump graphql lib ([ba9d5d338](https://github.com/powerhouse-inc/powerhouse/commit/ba9d5d338))
18
+ - **monorepo:** handle updating monorepo build deps ([db2ac2316](https://github.com/powerhouse-inc/powerhouse/commit/db2ac2316))
19
+ - **monorepo:** regenerate lockfile ([a6c390b4e](https://github.com/powerhouse-inc/powerhouse/commit/a6c390b4e))
20
+ - **builder-tools:** fix wrong value used for field id ([a6c6142e0](https://github.com/powerhouse-inc/powerhouse/commit/a6c6142e0))
21
+ - **reactor-api,reactor-local:** updated analytics dependencies ([cbeace573](https://github.com/powerhouse-inc/powerhouse/commit/cbeace573))
22
+
23
+ ### 🩹 Fixes
24
+
25
+ - **academy:** docker build ([58e83be09](https://github.com/powerhouse-inc/powerhouse/commit/58e83be09))
26
+ - **academy:** lockfile issue second time' ([6208fe614](https://github.com/powerhouse-inc/powerhouse/commit/6208fe614))
27
+ - **academy:** fix frozen lockfile issue' ([80f18ec73](https://github.com/powerhouse-inc/powerhouse/commit/80f18ec73))
28
+ - **academy:** fix frozen lockfile issue ([bfc3dcd21](https://github.com/powerhouse-inc/powerhouse/commit/bfc3dcd21))
29
+ - **pre-commit:** use bash syntax and shebang ([da00ff581](https://github.com/powerhouse-inc/powerhouse/commit/da00ff581))
30
+ - added missing dep to academy ([4ec6c8278](https://github.com/powerhouse-inc/powerhouse/commit/4ec6c8278))
31
+ - **academy:** clean up husky script ([e18e26cd8](https://github.com/powerhouse-inc/powerhouse/commit/e18e26cd8))
32
+ - **academy:** deployment ([36e5f194d](https://github.com/powerhouse-inc/powerhouse/commit/36e5f194d))
33
+ - **switchboard:** docker build ([7052e39e1](https://github.com/powerhouse-inc/powerhouse/commit/7052e39e1))
34
+ - docker build with PH_PACKAGES ([856ac1187](https://github.com/powerhouse-inc/powerhouse/commit/856ac1187))
35
+ - **document-drive:** fix type issue on browser storage ([240a78b41](https://github.com/powerhouse-inc/powerhouse/commit/240a78b41))
36
+ - **ph-cli:** ph add does not remove installed packages ([aedfbf56e](https://github.com/powerhouse-inc/powerhouse/commit/aedfbf56e))
37
+ - remove .env and add to .gitignore ([0d2d48684](https://github.com/powerhouse-inc/powerhouse/commit/0d2d48684))
38
+ - **switchboard,reactor-local:** latest version of sky atlas was not being installed ([72bf72fd4](https://github.com/powerhouse-inc/powerhouse/commit/72bf72fd4))
39
+
40
+ ### ❤️ Thank You
41
+
42
+ - acaldas @acaldas
43
+ - Benjamin Jordan
44
+ - Callme-T
45
+ - Frank
46
+ - Guillermo Puente @gpuente
47
+ - ryanwolhuter @ryanwolhuter
48
+
1
49
  ## 0.1.0-dev.6 (2025-06-04)
2
50
 
3
51
  ### 🩹 Fixes
@@ -11,8 +11,7 @@ Reducers are a core concept in Powerhouse document models. They implement the st
11
11
  **Connection to Schema Definition Language (SDL)**: The reducers directly implement the operations you defined in your SDL. Remember how we defined `AddTodoItemInput`, `UpdateTodoItemInput`, and `DeleteTodoItemInput` in our schema?
12
12
  The reducers provide the actual implementation of what happens when those operations are performed.
13
13
 
14
- To import the document model specification into your Powerhouse project, you can either:
15
-
14
+ To import the document model specification into your Powerhouse project, you can either:
16
15
  - Copy and paste the file directly into the root of your Powerhouse project.
17
16
  - Or drag and drop the file into the Powerhouse project directory in the VSCode editor as seen in the image below:
18
17
 
@@ -6,67 +6,36 @@ Powerhouse is a powerful platform that helps you manage and deploy your applicat
6
6
  ## Prerequisites
7
7
  Before you begin, ensure you have a Linux-based system (Ubuntu or Debian recommended), sudo privileges, and a stable internet connection. These are essential for the installation and configuration process. The system should have at least 1GB of RAM and 10GB of free disk space for optimal performance. While these are minimum requirements, more resources will provide better performance, especially when running multiple services.
8
8
 
9
- ## 1. Installing Powerhouse CLI
9
+ ## 1. Setting up a new cloud environment
10
10
 
11
- The `install-tools.sh` script provides a streamlined way to install the Powerhouse CLI tool and all its necessary dependencies. This script handles the installation of node.js 22, pnpm, and the Powerhouse CLI itself. It's designed to work across different Linux distributions, though it's optimized for Ubuntu and Debian-based systems.
11
+ The `install` script provides a streamlined way to install the Powerhouse CLI tool and all its necessary dependencies. This script handles the installation of node.js 22, pnpm, Powerhouse CLI itself and the services. It's designed to work across different Linux distributions, though it's optimized for Ubuntu and Debian-based systems. It also prepares your machine for running Powerhouse services. It handles everything from package installation to service configuration, making the setup process straightforward and automated. This script is particularly useful for setting up new servers or reconfiguring existing ones.
12
12
 
13
- ### Installation Steps:
14
- 1. Download the setup script:
15
- ```bash
16
- curl -O https://raw.githubusercontent.com/powerhouse-inc/powerhouse/refs/heads/main/scripts/install-tools.sh
17
- ```
18
-
19
- 2. Make the script executable:
20
- ```bash
21
- chmod +x install-tools.sh
22
- ```
23
13
 
24
- 3. Run the script:
14
+ ### Installation Steps:
15
+ 1. Run the setup script:
25
16
  ```bash
26
- ./install-tools.sh
17
+ curl -fsSL https://apps.powerhouse.io/install | bash # for macOS, Linux, and WSL
27
18
  ```
28
19
 
29
- 4. Choose a version when prompted:
30
- - `dev`: Development version - Use this for testing new features or development work
31
- - `staging`: Staging version - Use this for pre-production testing
32
- - RECOMMENDED: `latest`: Latest stable version - Recommended for production environments
33
- - Press Enter to go ahead with the latest version
34
-
35
- 5. After installation, source your shell configuration:
20
+ 2. After installation, source your shell configuration:
36
21
  ```bash
37
22
  source ~/.bashrc # or source ~/.zshrc if using zsh
38
23
  ```
39
24
 
40
- 6. Verify the installation:
25
+ 3. Verify the installation:
41
26
  ```bash
42
27
  ph --version
43
28
  ```
44
29
 
45
- ## 2. Configuring Your Machine
46
-
47
- Download the setup script:
48
- ```bash
49
- curl -O https://raw.githubusercontent.com/powerhouse-inc/powerhouse/refs/heads/main/scripts/setup-environment.sh
50
- ```
51
-
52
- The `setup-environment.sh` script is a comprehensive tool that prepares your machine for running Powerhouse services. It handles everything from package installation to service configuration, making the setup process straightforward and automated. This script is particularly useful for setting up new servers or reconfiguring existing ones.
30
+ 4. You will see ph-cli is not yet installed. But it will get installed automatically in the next step.
31
+ If you are a builder that wants to make use of the dev releases use `ph use dev` before going to the next step.
32
+ - `ph use dev`: Development version - Use this for testing new features or development work
33
+ - `ph use staging`: Staging version - Use this for pre-production testing
53
34
 
54
- ### Configuration Steps:
55
-
56
- 1. Make the script executable:
57
- ```bash
58
- chmod +x setup-environment.sh
59
- ```
60
-
61
- 2. Run the script:
62
- ```bash
63
- ./setup-environment.sh
64
- ```
65
-
66
- 3. Follow the interactive prompts:
35
+ 5. Follow the interactive prompts:
67
36
 
68
37
  ### Step 1: Package Installation
69
- During the package installation phase, you'll be prompted to enter package names that you want to install. For example, you might want to install `@sky-ph/atlas` or other Powerhouse packages. This step is crucial for adding the specific functionality you need to your Powerhouse installation. You can press Enter to skip this step if you don't need to install any packages immediately, but you can always install packages later using the `ph install` command.
38
+ During the package installation phase, you'll be prompted to enter package names that you want to install. For example, you might want to install `@powerhousedao/todo-demo-package` or other Powerhouse packages. This step is crucial for adding the specific functionality you need to your Powerhouse installation. You can press Enter to skip this step if you don't need to install any packages immediately, but you can always install packages later using the `ph install` command.
70
39
 
71
40
  ### Step 2: Database Configuration
72
41
  The script offers two options for database configuration.
@@ -138,7 +107,7 @@ It will take a minute or two for your Droplet to be provisioned. Once it's ready
138
107
 
139
108
  To log in via SSH:
140
109
 
141
- 1. Open a terminal (on macOS/Linux) or an SSH client like PuTTY (on Windows).
110
+ 1. Open a terminal (on macOS/Linux) or an SSH client like PuTTY (on Windows). You can also use Digital Ocean's web 'Console'.
142
111
  2. Use one of these commands:
143
112
  ```bash
144
113
  # If using password authentication
@@ -154,7 +123,7 @@ To log in via SSH:
154
123
  3. If you used a password, you'll be prompted to enter it.
155
124
  4. If it's your first time logging in, you might be asked to change the root password.
156
125
 
157
- Now your Droplet is running! You'll likely want to install and configure a web server (like Nginx or Apache) and your application or website files. This part is beyond the scope of just creating the Droplet but is crucial for it to do anything useful.
126
+ Now your Droplet is running! Now you can continue with the Powerhouse tutorial or any next steps.
158
127
 
159
128
  ### DNS Configuration
160
129
 
@@ -165,7 +134,7 @@ Now your Droplet is running! You'll likely want to install and configure a web s
165
134
  - Enter your domain name (e.g., `yourdomain.com`)
166
135
  - Click "Add Domain"
167
136
 
168
- 2. **Update Nameservers at Your Domain Registrar:**
137
+ 2. **Start with Updating Nameservers at Your Domain Registrar:**
169
138
  - Log in to your domain registrar
170
139
  - Update nameservers to:
171
140
  ```
@@ -187,9 +156,9 @@ Now your Droplet is running! You'll likely want to install and configure a web s
187
156
  - **WILL DIRECT TO:** Your Droplet's IP
188
157
  - **TTL:** 3600
189
158
 
190
- #### Option B: Using Your Existing Nameservers
159
+ #### Option B: Using Your Existing Nameservers (NS locked)
191
160
 
192
- 1. **Create DNS Records at Your Registrar:**
161
+ 1. **Just Create DNS Records at Your Registrar:**
193
162
  - **Root Domain (A Record):**
194
163
  - **TYPE:** A
195
164
  - **HOSTNAME:** @
@@ -324,10 +293,16 @@ Security is a top priority in the setup process. The script implements automatic
324
293
 
325
294
  After the installation is complete, it's important to verify that everything is working correctly. You can check the status of your services using PM2, verify the Nginx configuration, and ensure your SSL certificates are properly installed. This step is crucial for identifying any potential issues before they affect your users.
326
295
 
327
- 1. Check service status:
296
+ 1. Check service status of switchboard & connect:
297
+ ```bash
298
+ ph service status
299
+ ```
300
+ You can also use
301
+
328
302
  ```bash
329
- pm2 status
303
+ ph service start | stop | restart
330
304
  ```
305
+ - to start | stop | restart switchboard and connect
331
306
 
332
307
  2. View Nginx configuration:
333
308
  ```bash
@@ -390,12 +365,12 @@ ph update <package-name>
390
365
 
391
366
  ### Restarting Services:
392
367
  ```bash
393
- pm2 restart all
368
+ ph service restart
394
369
  ```
395
370
 
396
371
  ### Viewing Logs:
397
372
  ```bash
398
- pm2 logs
373
+ ph service status
399
374
  ```
400
375
 
401
376
  ## 7. Security Notes
package/package.json CHANGED
@@ -1,7 +1,11 @@
1
1
  {
2
2
  "name": "@powerhousedao/academy",
3
- "version": "0.1.0-dev.6",
3
+ "version": "2.5.0-dev.1",
4
4
  "homepage": "https://powerhouse.academy",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/powerhouse-inc/powerhouse"
8
+ },
5
9
  "dependencies": {
6
10
  "@codesandbox/sandpack-react": "^2.14.4",
7
11
  "@docusaurus/core": "^3.8.0",