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
Copy file name to clipboardExpand all lines: apps/cyberstorm-remix/README.md
+31-5Lines changed: 31 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,21 @@
1
-
# How to setup and run Nimbus
1
+
# How to setup and run Nimbus dev environment with local Thunderstore
2
+
3
+
## Preparations
4
+
This quide expects you to have setup your Thunderstore Django project for development on some level. Please setup the Thunderstore project before continuing.
5
+
6
+
## Setup nginx proxy for local data ingress/egress
7
+
1. Add the following to your hosts (on windows, google what how to achive same on other OS')
8
+
```
9
+
127.0.0.1 thunderstore.temp
10
+
127.0.0.1 new.thunderstore.temp
11
+
```
12
+
13
+
2. Boot up the nginx proxy with the following command; `docker compose -f tools/ts-dev-proxy/docker-compose.yml up`
14
+
15
+
3. Boot up your Thunderstore backend and ensure it's running in port 81 (it's normally 80). The following [line](https://github.com/thunderstore-io/Thunderstore/blob/f06b9b438ea6e990881e60339d34bde1a480d073/docker-compose.yml#L123) in your Thunderstore projects docker-compose, should be `- "127.0.0.1:81:8000"`
16
+
17
+
## Setup Nimbus for development
2
18
3
-
**!!! Setup your preferred backend before these steps !!!**
4
19
1. Clone the repo `[email protected]:thunderstore-io/thunderstore-ui.git`
5
20
6
21
2. Setup FontAwesome token. One way to do it is to add a `.npmrc` file with the following contents, under `thunderstore-ui/build-secrets/.npmrc`
@@ -11,11 +26,19 @@
11
26
12
27
3. Run `yarn install` first on the repo root (`thunderstore-ui` folder) and then again in the `thunderstore-ui/apps/cyberstorm-remix` folder.
13
28
14
-
4. Add `.env.development` and/or `.env.production` files. You can copy the `.env` file, rename and edit the values to your needs. (For example `ENABLE_BROKEN_PAGES`) lets you see pages that are not enabled in production.
29
+
4. Add `.env.development` and/or `.env.production` files. You can copy the `.env` file, rename and edit the values to your needs. Here's a example of the file contents:
30
+
```
31
+
VITE_SITE_URL=http://thunderstore.temp
32
+
VITE_BETA_SITE_URL=http://new.thunderstore.temp
33
+
VITE_API_URL=http://thunderstore.temp
34
+
VITE_COOKIE_DOMAIN=.thunderstore.temp
35
+
VITE_AUTH_BASE_URL=http://thunderstore.temp
36
+
VITE_AUTH_RETURN_URL=http://new.thunderstore.temp
37
+
```
15
38
16
-
5.Run the dev script or the build and start script.
39
+
5.Uncomment the following string to the `allowedHosts` list in `vite.config.ts` ([link](https://github.com/thunderstore-io/thunderstore-ui/blob/f69ca05f2fe51320768aa4b934d17e40060192b5/apps/cyberstorm-remix/vite.config.ts#L13-L17)): `".thunderstore.temp"`
17
40
18
-
6.The project is now running in `localhost:3000`
41
+
6.Run the build/start server script or the dev server script
19
42
20
43
Build and start
21
44
```
@@ -28,6 +51,9 @@ Dev script
28
51
yarn workspace @thunderstore/cyberstorm-remix dev --port 3000 --host 0.0.0.0
29
52
```
30
53
54
+
## Finally
55
+
You should now have the fully local Nimbus dev environment setup and running in `http://new.thunderstore.temp` and the Django site should be running in `http://thunderstore.temp`. You might need to go to `http://new.thunderstore.temp/communities` as Nimbus doesn't have a landing page yet.
56
+
31
57
# How to setup ts-proxy as a backend for this project
32
58
**Keep in mind that when using the ts-proxy, the sessions and actions will be made against the actual production Thunderstore**
0 commit comments