Skip to content

WIP: use desktop components to serve static page - #589

Open
ramfox wants to merge 4 commits into
masterfrom
feat_webapp
Open

WIP: use desktop components to serve static page#589
ramfox wants to merge 4 commits into
masterfrom
feat_webapp

Conversation

@ramfox

@ramfox ramfox commented Sep 3, 2020

Copy link
Copy Markdown
Member

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