$ cd app && webpack-dev-server
Server will run on http://localhost:4567
as written in webpack.config.js
.
$ cd app && webpack
Builds into server/static
folder
####### Issues
-
Comment: In
app/index.html
the line<script src="static/bundle.js"></script>
has to this way although in
webpack.config.js
the path tobundle.js
is/../server/static
. -
After building and running
- Material UI
- CSS Modules: Set up as in these instructions belonging to this project
This minimal Flask Server listens to incoming POST requests from the QCS React Native mobile App and has a TCP socket connection to a raspberry PI.
$ python server/main.js
Server will be accessible on http://localhost:5000/
index.html
has to be in folder calledtemplates
in same hierarchy asmain.py
file.- Any static files (e.g. javascript or CSS) have to be in the
static
folder. Thereforewebpack
builds into this folder.