Add webpack dev server

This commit is contained in:
Baptiste Grob
2020-03-11 16:46:01 +01:00
parent fd94a201b0
commit bbceed8c42
6 changed files with 1344 additions and 5 deletions

View File

@@ -60,8 +60,9 @@ This repo contains the core code used in the web app, as well as the Electron-ba
**Instructions:**
1. Clone the repo
1. `npm run build`
1. `rails s`
2. `cp dev-index.html public/index.html`
3. `npm install`
4. `npm start`
Open your browser to http://localhost:3000.
@@ -69,7 +70,7 @@ Open your browser to http://localhost:3000.
**Extensions Manager and Batch Manager:**
The web app makes use of two optional native extensions, which can be configured to work as follows:
The web app makes use of two optional native extensions, which, when running the app with Rails, can be configured to work as follows:
1. `git submodule update --init --force --remote` (will load the submodules in the `public/extensions` folder)
1. Set the following environment variables in the .env file: