Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Latest commit

 

History

History
20 lines (18 loc) · 647 Bytes

SETUP.md

File metadata and controls

20 lines (18 loc) · 647 Bytes

App

  • Install Node
  • sudo npm install -g ionic
  • sudo npm install -g gulp-cli
  • npm install @types/node --save-dev (TypeScript 2)
  • npm install -g add-cors-to-couchdb # may require sudo
  • npm install
  • add-cors-to-couchdb && ionic serve

Database

  • Install Docker
  • docker pull klaemo/couchdb:2.0.0 (see more: https://goo.gl/rdrS63)
  • Run CouchDB 2 container: docker run -p 5984:5984 klaemo/couchdb:2.0.0 on fish shell
  • curl -X PUT http://127.0.0.1:5984/_users
  • curl -X PUT http://127.0.0.1:5984/bolty

Device build

  • ionic platform add android
  • cordova plugin add cordova-plugin-whitelist
  • ionic build android