Client & server for parking space occupancy sensors
Web client & server for parking space occupancy sensors. This is a companion app for NodeMCU based esp8266 app.
NODE_ENV
is set to development
Now you can open http://localhost:8080 to view the app in the browser.
cp .env-example .env
vim .env
npm install
npm start
NODE_ENV
is set to production
Node.js app will serve static content (from
npm install
npm start
dist
directory), respond to API endpoints and communicate with client using socket.io.npm start
Runs the app in the development or production mode (depending on NODE_ENV).
Open http://localhost:8080 to view it in the browser.
In production mode only Node.JS server is started.
In development webpack, which proxies requests to node server, is started too.
watch
build
build-dev
create-tables