Onyva application to organize transportation with friends.
Follow these instructions to install the app and run it with the mock (in-memory) data services:
-
Make sure you have the latest version of Cordova and Ionic and Node:
npm install -g cordova npm install -g ionic nvm install node
-
Clone the repository:
git clone https://github.com/rockeek/onyvaApp.git
-
Navigate to the
onyvaApp
directory :cd onyvaApp
-
Install the dependencies
npm install
-
Run the app in the browser
npm start
or
ionic run ionic:serve
Note: under windows, if c:\src is a link, please go to the real directory to make it work.
Follow these instructions to run it with the REST data services:
-
Replace all references to
property-service-mock
andbroker-service-mock
withproperty-service
andbroker-service
-
Install the Node.js implementation of the REST services (see this repository for instructions), and run the Node server.
-
Adjust the
SERVER_URL
inproviders/config.ts
. The default is http://localhost:5000. -
Run the app in the browser
npm start
To avoid CORS issues, we implemented a proxy in ionic.config.json This way we can reach the REST services from another web server without having Cross Origin Resource Sharing issue.
To build for production
ionic cordova build browser --prod --release
Copy the output of www You can improve the WebApp presentation by improving the manifest: https://thishereweb.com/understanding-the-manifest-for-web-app-3f6cd2b853d6
Origin: https://icones8.fr/icon/set/passenger/all https://icones8.fr/icon/set/navette/all
To generate them all:
ionic cordova resources