Skip to content

Commit 529fd97

Browse files
author
Bastien
committed
v3 - initial commit
0 parents  commit 529fd97

File tree

223 files changed

+19671
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

223 files changed

+19671
-0
lines changed

.gitignore

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Specifies intentionally untracked files to ignore when using Git
2+
# http://git-scm.com/docs/gitignore
3+
4+
*~
5+
*.sw[mnpcod]
6+
*.log
7+
*.tmp
8+
*.tmp.*
9+
log.txt
10+
*.sublime-project
11+
*.sublime-workspace
12+
.vscode/
13+
npm-debug.log*
14+
15+
.idea/
16+
.ionic/
17+
.sourcemaps/
18+
.sass-cache/
19+
.tmp/
20+
.versions/
21+
coverage/
22+
www/
23+
node_modules/
24+
tmp/
25+
temp/
26+
platforms/
27+
plugins/
28+
plugins/android.json
29+
plugins/ios.json
30+
$RECYCLE.BIN/
31+
32+
.DS_Store
33+
Thumbs.db
34+
UserInterfaceState.xcuserstate

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
11.6.0

.prettierrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"singleQuote": true,
3+
"trailingComma": "all",
4+
"printWidth": 120
5+
}

LICENSE

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
BSD 2-Clause License
2+
3+
Copyright (c) 2019, Makina Corpus
4+
All rights reserved.
5+
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted provided that the following conditions are met:
8+
9+
* Redistributions of source code must retain the above copyright notice, this
10+
list of conditions and the following disclaimer.
11+
12+
* Redistributions in binary form must reproduce the above copyright notice,
13+
this list of conditions and the following disclaimer in the documentation
14+
and/or other materials provided with the distribution.
15+
16+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
20+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
23+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
# Geotrek Mobile
2+
3+
# INSTALLATION
4+
5+
_Before proceeding, make sure the latest version of [Node.js and npm](https://nodejs.org/en/) are installed_
6+
7+
```
8+
npm install -g ionic
9+
10+
git clone git@github.com:GeotrekCE/Geotrek-mobile.git
11+
12+
cd geotrek-mobile-refonte-ionic
13+
14+
npm install
15+
```
16+
17+
# RUN THE APP IN THE BROWSER
18+
19+
_Minimum requirements : Fill in 'onlineBaseUrl' in 'src/environments/environments.ts'_ with your personal api url
20+
21+
```
22+
ionic serve
23+
```
24+
25+
# RUN THE APP ON DEVICE
26+
27+
## iOS
28+
29+
_Need [iOS environment setup](https://ionicframework.com/docs/installation/ios) available only on macOS_
30+
31+
```
32+
ionic cordova run ios
33+
```
34+
35+
## Android
36+
37+
_Need [Android environment setup](https://ionicframework.com/docs/installation/android) available on Windows, macOS and Linux_
38+
39+
```
40+
ionic cordova run android
41+
```
42+
43+
# BUILD RELEASE APP
44+
45+
_Minimum requirements : Fill in 'onlineBaseUrl' in 'src/environments/environments.prod.ts'_ with your personal api url
46+
47+
## iOS
48+
49+
```
50+
ionic cordova build ios --prod --release
51+
```
52+
53+
## Android
54+
55+
```
56+
ionic cordova build android --prod --release
57+
```
58+
59+
# CUSTOMIZATION OPTIONS
60+
61+
You can find below all available options. You can easily overwrite them to customize your app.
62+
63+
## config.xml
64+
65+
App id
66+
67+
```
68+
<widget id="io.geotrek.starter" ...>
69+
```
70+
71+
App name
72+
73+
```
74+
<name>Geotrek Starter</name>
75+
```
76+
77+
## src/environments/environment.ts & environment.prod.ts
78+
79+
You can overwrite a lot of options inside these files:
80+
AppName (header of the app) , availableLanguage, api url, map options and more
81+
82+
_environment.prod.ts will be use for development
83+
environment.prod.ts will be use for release app_
84+
85+
## src/assets/i18n
86+
87+
You can find all the internationalization ressources here (by default Fr and En)
88+
89+
## src/assets/map/icons/
90+
91+
Local icons to display on the map, like departure or parking icon
92+
93+
## src/assets/map/zone/zone.geojson
94+
95+
Geosjon to display on the map
96+
_Generally represents the limits of the geographical area of the application_
97+
98+
## src/theme/variables.scss
99+
100+
Colors that will be used
101+
_The most important point here is the primary color to customize your application_
102+
103+
## icons and splashscreen
104+
105+
- The source image for icons should ideally be at least 1024×1024px and located in resources/icon.png
106+
107+
- 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.
108+
109+
Then you just have to run
110+
111+
```
112+
113+
ionic cordova resources
114+
115+
```
116+
117+
## Other resources
118+
119+
- All others resources are provided by the api
120+
_We download a global package for offline mode when user downloads his first trek_

angular.json

Lines changed: 193 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,193 @@
1+
{
2+
"$schema": "./node_modules/@angular-devkit/core/src/workspace/workspace-schema.json",
3+
"version": 1,
4+
"defaultProject": "app",
5+
"newProjectRoot": "projects",
6+
"projects": {
7+
"app": {
8+
"root": "",
9+
"sourceRoot": "src",
10+
"projectType": "application",
11+
"prefix": "app",
12+
"schematics": {},
13+
"architect": {
14+
"build": {
15+
"builder": "@angular-devkit/build-angular:browser",
16+
"options": {
17+
"outputPath": "www",
18+
"index": "src/index.html",
19+
"main": "src/main.ts",
20+
"polyfills": "src/polyfills.ts",
21+
"tsConfig": "src/tsconfig.app.json",
22+
"assets": [
23+
{
24+
"glob": "**/*",
25+
"input": "src/assets",
26+
"output": "assets"
27+
},
28+
{
29+
"glob": "**/*.svg",
30+
"input": "node_modules/ionicons/dist/ionicons/svg",
31+
"output": "./svg"
32+
}
33+
],
34+
"styles": [
35+
{
36+
"input": "src/theme/variables.scss"
37+
},
38+
{
39+
"input": "src/global.scss"
40+
}
41+
],
42+
"scripts": []
43+
},
44+
"configurations": {
45+
"production": {
46+
"fileReplacements": [
47+
{
48+
"replace": "src/environments/environment.ts",
49+
"with": "src/environments/environment.prod.ts"
50+
}
51+
],
52+
"optimization": true,
53+
"outputHashing": "all",
54+
"sourceMap": false,
55+
"extractCss": true,
56+
"namedChunks": false,
57+
"aot": true,
58+
"extractLicenses": true,
59+
"vendorChunk": false,
60+
"buildOptimizer": true,
61+
"budgets": [
62+
{
63+
"type": "initial",
64+
"maximumWarning": "2mb",
65+
"maximumError": "5mb"
66+
}
67+
]
68+
},
69+
"ci": {
70+
"progress": false
71+
}
72+
}
73+
},
74+
"serve": {
75+
"builder": "@angular-devkit/build-angular:dev-server",
76+
"options": {
77+
"browserTarget": "app:build"
78+
},
79+
"configurations": {
80+
"production": {
81+
"browserTarget": "app:build:production"
82+
},
83+
"ci": {
84+
"progress": false
85+
}
86+
}
87+
},
88+
"extract-i18n": {
89+
"builder": "@angular-devkit/build-angular:extract-i18n",
90+
"options": {
91+
"browserTarget": "app:build"
92+
}
93+
},
94+
"test": {
95+
"builder": "@angular-devkit/build-angular:karma",
96+
"options": {
97+
"main": "src/test.ts",
98+
"polyfills": "src/polyfills.ts",
99+
"tsConfig": "src/tsconfig.spec.json",
100+
"karmaConfig": "src/karma.conf.js",
101+
"styles": [],
102+
"scripts": [],
103+
"assets": [
104+
{
105+
"glob": "favicon.ico",
106+
"input": "src/",
107+
"output": "/"
108+
},
109+
{
110+
"glob": "**/*",
111+
"input": "src/assets",
112+
"output": "/assets"
113+
}
114+
]
115+
},
116+
"configurations": {
117+
"ci": {
118+
"progress": false,
119+
"watch": false
120+
}
121+
}
122+
},
123+
"lint": {
124+
"builder": "@angular-devkit/build-angular:tslint",
125+
"options": {
126+
"tsConfig": ["src/tsconfig.app.json", "src/tsconfig.spec.json"],
127+
"exclude": ["**/node_modules/**"]
128+
}
129+
},
130+
"ionic-cordova-build": {
131+
"builder": "@ionic/angular-toolkit:cordova-build",
132+
"options": {
133+
"browserTarget": "app:build"
134+
},
135+
"configurations": {
136+
"production": {
137+
"browserTarget": "app:build:production"
138+
}
139+
}
140+
},
141+
"ionic-cordova-serve": {
142+
"builder": "@ionic/angular-toolkit:cordova-serve",
143+
"options": {
144+
"cordovaBuildTarget": "app:ionic-cordova-build",
145+
"devServerTarget": "app:serve"
146+
},
147+
"configurations": {
148+
"production": {
149+
"cordovaBuildTarget": "app:ionic-cordova-build:production",
150+
"devServerTarget": "app:serve:production"
151+
}
152+
}
153+
}
154+
}
155+
},
156+
"app-e2e": {
157+
"root": "e2e/",
158+
"projectType": "application",
159+
"architect": {
160+
"e2e": {
161+
"builder": "@angular-devkit/build-angular:protractor",
162+
"options": {
163+
"protractorConfig": "e2e/protractor.conf.js",
164+
"devServerTarget": "app:serve"
165+
},
166+
"configurations": {
167+
"ci": {
168+
"devServerTarget": "app:serve:ci"
169+
}
170+
}
171+
},
172+
"lint": {
173+
"builder": "@angular-devkit/build-angular:tslint",
174+
"options": {
175+
"tsConfig": "e2e/tsconfig.e2e.json",
176+
"exclude": ["**/node_modules/**"]
177+
}
178+
}
179+
}
180+
}
181+
},
182+
"cli": {
183+
"defaultCollection": "@ionic/angular-toolkit"
184+
},
185+
"schematics": {
186+
"@ionic/angular-toolkit:component": {
187+
"styleext": "scss"
188+
},
189+
"@ionic/angular-toolkit:page": {
190+
"styleext": "scss"
191+
}
192+
}
193+
}

0 commit comments

Comments
 (0)