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
+21-24Lines changed: 21 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,15 +4,13 @@
4
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
5
6
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`
7
+
1. Make sure the `Thunderstore` backend repo and this repo live under the same parent directory (e.g. `C:\projects\Thunderstore` and `C:\projects\thunderstore-ui`).
8
+
2. From `Thunderstore` run `docker compose up -d`.
9
+
3. Seed the database plus the default `localhost`/`new.localhost`/`auth.localhost` Site objects with `docker compose exec django python manage.py setup_dev_env`.
10
+
4. From this repo run `docker compose -f docker-compose.remix.development.yml up -d`. This starts the Remix dev server and a lightweight `nginx-configurator` helper that copies the `tools/nginx/*.conf` files into the shared `thunderstore_nginx_conf` volume exposed by the backend nginx container.
11
+
5. Wait until the `cyberstorm-remix` container reports `react-router dev` in its logs. The backend nginx container automatically reloads whenever the shared config volume changes, so visiting `http://localhost` (Django) or `http://new.localhost` (Remix) works without editing your hosts file.
14
12
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"`
13
+
> **Note:** The compose file exports `SERVER_SIDE_API_URL=http://nginx` to the Remix container. This makes server-rendered API calls talk to the backend nginx container directly, while the browser continues to use `VITE_API_URL=http://localhost`.
16
14
17
15
## Setup Nimbus for development
18
16
@@ -28,13 +26,13 @@ This quide expects you to have setup your Thunderstore Django project for develo
28
26
29
27
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:
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.
52
+
You should now have the fully local Nimbus dev environment setup and running in `http://new.localhost` and the Django site should be running in `http://localhost`. You might need to go to `http://new.localhost/communities` as Nimbus doesn't have a landing page yet.
55
53
56
54
# How to setup ts-proxy as a backend for this project
57
55
**Keep in mind that when using the ts-proxy, the sessions and actions will be made against the actual production Thunderstore**
58
56
59
-
1. Open hosts file as administrator (`C:\Windows\System32\drivers\etc`) and add this `127.0.0.1 thunderstore.temp` there
60
-
2. Download and install Docker and docker-compose. For windows people, Docker for Windows should be enough.
61
-
3. Open up a terminal and navigate to `thunderstore-ui/tools/ts-proxy`
62
-
4. Run `docker compose up`
63
-
5. Add these to your `.env.development` or `.env.production`
57
+
1. Download and install Docker and docker-compose. For windows people, Docker for Windows should be enough.
58
+
2. Open up a terminal and navigate to `thunderstore-ui/tools/ts-proxy`
59
+
3. Run `docker compose up`
60
+
4. Add these to your `.env.development` or `.env.production`
0 commit comments