You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* libvirt (macOS folks can run `brew install libvirt`)
99
100
* An [Unraid][Unraid-url] server for development
100
101
101
102
Next, create an SSH key if you haven't already.
@@ -123,27 +124,28 @@ Once you have your key pair, add your public SSH key to your Unraid server:
123
124
```
124
125
125
126
This will run installation scripts, container builds, and some git scripts to reduce noise (i.e. personal editor customizations, etc).
126
-
3. Run the API container
127
+
128
+
Alternatively, run `pnpm install` for a lighter, less opinionated setup.
129
+
3. Run dev servers
127
130
128
131
```sh
129
-
cd api
130
-
npm run container:start
132
+
pnpm dev
131
133
```
132
134
133
-
4. This should bring you inside the API container. There, run the following command to start the server:
135
+
This will run every dev server in the monorepo. By default, this means:
134
136
135
-
```js
136
-
npm run dev
137
-
```
137
+
* The unraid-api will be available at localhost:3001
138
+
* The dev server for "rich" web components (like the User Profile Component) will be at localhost:4321 -- Note that shipping to unraid is preferred, as the dev environment is significantly different.
139
+
* The vite server for unraid-ui development will be at localhost:5173
138
140
139
-
5. In another terminal, open the project and navigate to the web directory. Then, run the dev server:
141
+
4. Test on Unraid
140
142
141
-
```sh
142
-
cd web
143
-
npm install # just in case
144
-
npm run dev
143
+
```js
144
+
pnpm unraid:deploy <SERVER_IP>
145
145
```
146
146
147
+
This will ship a staging build of unraid-api, unraid-ui, and unraid-components to an Unraid server located at `<SERVER_IP>`.
148
+
147
149
<palign="right">(<ahref="#readme-top">back to top</a>)</p>
0 commit comments