Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: use desktop components to serve static page #589

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

ramfox
Copy link
Member

@ramfox ramfox commented Sep 3, 2020

Main changes are all in the webapp folder, including the dist from webpack.

Outside of the webapp folder, there is a new webpack.config.webapp.js, which only covers production mode.

To build run yarn build-webapp, against dist files are

I'm using serve to serve the files: serve -s app/webapp/dist, but I've also just looked at them by opening the app/webapp/dist/index.html file in my chrome browser

Any other changes outside of these files is to account for "electron" or "web" mode in the quickest way possible.


To use this webapp:

  • adjust your qri config file to accept requests from http://localhost:3000, (webpack dev server defaults to 3000, change that in the webpack.config.webapp.dev.js file if you need it to be different)

To use in dev mode:
yarn dev-webapp

To use in prod mode:
yarn build-webapp
serve -s app/webapp/dist -l 3000

@ramfox ramfox force-pushed the feat_webapp branch 2 times, most recently from 10fc293 to 92481cc Compare September 5, 2020 00:48
note: had to create a `index_dev.html` and add "unsafe-eval" to the "Content-Security-Policy" in order to quickly get to development. If we continue to work on this webapp, we should research if there is a better way to manage this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant