- Clone repo
git clone https://github.com/usanzadunje/ProjekatA-frontend.git
- Copy .env.example into .env
cp .env.example .env
and populate values- VUE_APP_API_URL can be set to http://localhost or any other address backend is running on your device.
- VUE_APP_STORED_IMAGES_URL can be set to http://localhost/storage/img
- Before you add Google Maps API keys you will need to enable Maps SDK for Android/iOS and Maps Javascript API (only ones you will actually use should be enabled)
- Then you will need to generate Google Maps API key (same key can go for iOS and Android).
- For locales, you can choose between sr or en locale, Serbian language or English respectively.
Start application using Docker
- Position yourself inside root folder of this application inside terminal.
- Run
docker-compose up -d
to run it in development mode with livereload while changing local files (all files in docker container are synced to your local ones be careful to install all dependencies locally). - Or you can run
docker-compose -f docker-compose.prod.yml up -d
to run production version which will copy files and bundle application up and run it despite you running npm install locally. - Preview application in browser development | production
- Application is built for mobile devices so running it in fullscreen may look odd. I suggest you open Chrome dev tools and select any mobile device from the list provided.
Start application without Docker
- Nodejs & NPM
- Ionic CLI or install it running following
command
npm install -g @ionic/cli
- Java 11+ (Android only)
- Android Studio
- Xcode (for macOS)
- Open terminal inside root folder of this application.
- Run
npm install
. - Serving the application
npm run serve
. - Preview it in a browser, application is built for mobile devices so running it in fullscreen may look odd. I suggest you open Chrome dev tools and select any mobile device from the list provided.
- Open terminal inside root folder of this application.
- Run
npm install
. - Run
ionic cap run android
and select device you want application to be emulated in Android Studio. - You could also run
ionic cap run android --external
which will do the same thing but also make application available in the browser.
- Open terminal inside root folder of this application.
- Run
npm install
. - Position inside iOS App folder
cd ios/App
. - You will need cocoapods pods installed, install them by running
brew install cocoapods
. - Install pod dependencies by running
pod install
. - Run
ionic cap run ios
and select device you want application to be emulated in Xcode. - You could also run
ionic cap run ios --external
which will do the same thing but also make application available in the browser.
If you do not want to bother with these steps but want to test application on real device you can contact me via e-mail on [email protected]. I will need e-mail you are using for Google Play Store or App Store to add you as a tester after which you will be able to download application on your device and run it just like in the emulator.
!Hosted application server has been shut down therefore APK file will not work since it points to that server.!
Download Android apk file | iOS ipa file (not available yet)
- E-mail: [email protected] | [email protected]