NOTICE!
This is a legacy version 1.5
Find the new version 2+ here:
https://github.com/fablabbcn/smartcitizen-kit-20
Developer version of Smart Citizen Kit 1.5 Firmware
You can see this repos current (master branch) state of the mobile UI setup here:
https://fablabbcn.github.io/smartcitizen-kit-20/esp/data/
The app consists of 3 things
- The core firmware (C++)
- Frontend, a mobile web UI for setting up the kit.
localhost:8000
- mock-api - for mocking the API of the kit
localhost:3000
All branches and pull requests on Github are auto tested with Travis
The technology used:
- Platformio
- In folder ./sam/ do:
pio run -t upload
- in folder ./esp/ do:
pio run -t upload
- To upload the Frontend website code to the filesystem do:
pio run -t uploadfs
The technology used here is:
- HTML, CSS, JavaScript
- (Vue.js)
And the files are under esp/data
Inside the ./mock-api folder do:
-
npm install
-
npm run web
- Starts frontend on localhost:8000 -
npm run api
- Starts api on localhost:3000
If your mock-api is not responding, see /esp/data/main.js, theUrl should be (your API url:port)
You can run End to End test (for the Web UI) against the current master branch with this command:
npm test
If you want the tests to be run automatically everytime you edit mock-api/casperjs/test
use:
npm run autotest
Edit tests under mock-api/casperjs/test
- Should we move the frontend to /mock-api, and create a process which compiles it + concatinates and puts the 'dist' in esp/data?
From Jan 2016 to March 2017 this work has received funding from the European Union's Horizon 2020 research and innovation program under the grant agreement No. 688620
From April 2016 onwards this work has received funding from the European Union's Horizon 2020 research and innovation program under the grant agreement No. 688620