Skip to content

Commit 96c1a6d

Browse files
authored
Merge pull request #1530 from thunderstore-io/09-15-update_cyberstorm-remix_readme_with_up-to-date_setup_guide
Update cyberstorm-remix Readme with up-to-date setup guide
2 parents f69ca05 + badc508 commit 96c1a6d

File tree

1 file changed

+31
-5
lines changed

1 file changed

+31
-5
lines changed

apps/cyberstorm-remix/README.md

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff 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
218

3-
**!!! Setup your preferred backend before these steps !!!**
419
1. Clone the repo `[email protected]:thunderstore-io/thunderstore-ui.git`
520

621
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 @@
1126

1227
3. Run `yarn install` first on the repo root (`thunderstore-ui` folder) and then again in the `thunderstore-ui/apps/cyberstorm-remix` folder.
1328

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+
```
1538

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"`
1740

18-
6. The project is now running in `localhost:3000`
41+
6. Run the build/start server script or the dev server script
1942

2043
Build and start
2144
```
@@ -28,6 +51,9 @@ Dev script
2851
yarn workspace @thunderstore/cyberstorm-remix dev --port 3000 --host 0.0.0.0
2952
```
3053

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+
3157
# How to setup ts-proxy as a backend for this project
3258
**Keep in mind that when using the ts-proxy, the sessions and actions will be made against the actual production Thunderstore**
3359

0 commit comments

Comments
 (0)