Skip to content

Commit

Permalink
Improve/connect faster (#101)
Browse files Browse the repository at this point in the history
* something working but cannot unregister listener

* reduce service output

* fix: dont start the service worker if dev env

* migrate to yarn

* fix: dependencies

* yarn migration

* trying to fix nym-client

* testing new sdk

* new SDK works

* smmal changes

* chg: to 1.2.1

* add: connect correctly

* add: connect correctly

---------

Co-authored-by: cgi-bin <s@ono.re>
  • Loading branch information
sven-hash and cgi-bin committed Nov 6, 2023
1 parent 9fae7c3 commit adca319
Show file tree
Hide file tree
Showing 11 changed files with 11,941 additions and 43,619 deletions.
9 changes: 3 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
FROM node:16-alpine AS builder

# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)
COPY package.json package-lock.json /app/
COPY package.json yarn.lock /app/
WORKDIR /app

RUN npm install
RUN yarn

# Bundle app source
COPY . /app
RUN npm run-script build
RUN yarn build


FROM nginx:alpine
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ BTC: `bc1q5j4tq0yr75j90xwegwtfpaccdx3xdaxxzjtzt8`
NodeJS (`v18.2.0`) and NPM (`v9.20.0`) are used for the frontend.

1. Copy the `.env.example` to `.env`. Detailled values are explained in `.env details` section at the bottom
2. Run `npm install` and grab a cup of coffee
3. Run `npm run start` and go to [http://localhost:8080](http://localhost:8080) in your favorite browser.
2. Run `npm install -g yarn && yarn` and grab a cup of coffee
3. Run `yarn dev` and go to [http://localhost:8080](http://localhost:8080) in your favorite browser.

or

Run `npm run build` to build the project, everything will be in the `dist` folder. Just copy it to host it with a webserver
Run `yarn build` to build the project, everything will be in the `dist` folder. Just copy it to host it with a webserver


If you don't have a backend you can use this one, just set the `REACT_APP_NYM_CLIENT_SERVER=` to this value: `HWm3757chNdBq9FzKEY9j9VJ5siRxH8ukrNqYwFp9Unp.D34iYLRd5vzpCU4nZRcFVmoZpTQQMa6mws4Q65LdRosi@Fo4f4SQLdoyoGkFae5TpVhRVoXCF8UiypLVGtGjujVPf`
Expand Down
Loading

0 comments on commit adca319

Please sign in to comment.