Skip to content

lelannl/Geotrek-mobile

 
 

Repository files navigation

Geotrek Mobile

INSTALLATION

Before proceeding, make sure the latest version of Node.js and npm are installed

npm install -g ionic

git clone [email protected]:GeotrekCE/Geotrek-mobile.git

cd geotrek-mobile-refonte-ionic

npm install

RUN THE APP IN THE BROWSER

Minimum requirements : Fill in 'onlineBaseUrl' in 'src/environments/environments.ts' with your personal api url

ionic serve

RUN THE APP ON DEVICE

iOS

Need iOS environment setup available only on macOS

ionic cordova run ios

Android

Need Android environment setup available on Windows, macOS and Linux

ionic cordova run android

BUILD RELEASE APP

Minimum requirements : Fill in 'onlineBaseUrl' in 'src/environments/environments.prod.ts' with your personal api url

iOS

ionic cordova build ios --prod --release

Android

ionic cordova build android --prod --release

CUSTOMIZATION OPTIONS

You can find below all available options. You can easily overwrite them to customize your app.

config.xml

App id

<widget  id="io.geotrek.starter" ...>

App name

<name>Geotrek Starter</name>

src/environments/environment.ts & environment.prod.ts

You can overwrite a lot of options inside these files:
AppName (header of the app) , availableLanguage, api url, map options and more

environment.prod.ts will be use for development
environment.prod.ts will be use for release app

src/assets/i18n

You can find all the internationalization ressources here (by default Fr and En)

src/assets/map/icons/

Local icons to display on the map, like departure or parking icon

src/assets/map/zone/zone.geojson

Geosjon to display on the map
Generally represents the limits of the geographical area of the application

src/theme/variables.scss

Colors that will be used
The most important point here is the primary color to customize your application

icons and splashscreen

  • The source image for icons should ideally be at least 1024×1024px and located in resources/icon.png

  • The source image for splash screens should ideally be at least 2732×2732px and located in resources/splash.png. For best results, the splash screen's artwork should roughly fit within a square (1200×1200px) at the center of the image.

Then you just have to run

ionic cordova resources

Other resources

  • All others resources are provided by the api We download a global package for offline mode when user downloads his first trek

Documentation

Access to extensive documentation

About

Geotrek mobile, mobile app of Geotrek Rando

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 79.9%
  • HTML 16.1%
  • CSS 3.2%
  • JavaScript 0.8%