You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* You can [download it here](https://nodejs.org/en/).
15
19
* Install NPM 3.x
16
20
* Even though you may have the latest NodeJS, that doesn't mean you have the latest version of NPM. You can check your version with `npm -v`. If you need to update, run `npm install npm -g`.
17
-
* Install Aurelia CLI
21
+
* Install Aurelia CLI
18
22
*`npm install aurelia-cli -g`
19
23
20
24
### Application setup
21
-
* Install the project dependencies
25
+
* Install the project dependencies
22
26
*`npm install`
23
27
24
28
___
25
29
26
30
### Project Structure
27
31
The project structure is as follows:
28
32
-**assets**: Static assets such as fonts, images, vector graphics, and icons
29
-
-**aurelia_project**: Aurelia generated folder containing config (Check Configuration section for more details) and framework specific libraries
33
+
-**aurelia_project**: Aurelia generated folder containing config (Check Configuration section for more details) and framework specific libraries
30
34
-**scripts**: Generated scripts from the build process
31
35
-**src**: The main application code with the following files and subfolders
32
36
***components**: Contains custom-elements to be used in routes (Read more about Aurelia Custom Elements [here](http://aurelia.io/hub.html#/doc/article/aurelia/framework/latest/cheat-sheet/9))
*`tile_layer` : set map tile source url (allows using multiple tileLayers for development, staging, production, etc)
71
75
*`data_server` : set url of cognicity server (Default value is http://localhost:8001/ if using [cognicity-server] (https://github.com/urbanriskmap/cognicity-server-v3))
72
-
*`app` : set it to map landing page url (Default value is http://localhost:9000/ if using this platform)
76
+
*`app` : set it to map landing page url (Default value is http://localhost:9000/ if using this platform)
73
77
*`default_language`: set it to one of the languages in `supported_languages` (Default is 'en')
74
78
*`supported_languages`: set it to an array of languages you support (Default is ['en', 'id']. In case you add more languages, update the array and add corresponding locale information in /src/resources/locales/TWO_LETTER_LANGUAGE_CODE.js)
75
79
*`enable_test_cardid`: set to false to disable cardid=test123 in prod environments (Default is true for local and dev environments)
@@ -102,20 +106,20 @@ Testing environment supported by [BrowserStack](https://www.browserstack.com/)
102
106
103
107
Do ('npm test') to build the project and run the tests.
104
108
105
-
If you want to run BrowserStack, you need to provide environment variables with your
106
-
username and password. Put `export BROWSERSTACK_USERNAME=yourUsername` and `export BROWSERSTACK_KEY=yourAccessKey` into
107
-
your ~/.bashrc or ~/.bash_profile in order for karma to pick up the browserstack credentials. Now run `source ~/bash_profile` and
108
-
npm test in order to build the bundle and run karama unit tests against it.
109
+
If you want to run BrowserStack, you need to provide environment variables with your
110
+
username and password. Put `export BROWSERSTACK_USERNAME=yourUsername` and `export BROWSERSTACK_KEY=yourAccessKey` into
111
+
your ~/.bashrc or ~/.bash_profile in order for karma to pick up the browserstack credentials. Now run `source ~/bash_profile` and
112
+
npm test in order to build the bundle and run karama unit tests against it.
109
113
110
-
##e2e testing:
114
+
##e2e testing:
111
115
112
-
End to end testing is implemented using protractor, webdriver, and browserstack. First install protractor: `npm install -g protractor` then download the webdriver binaries: `webdriver-manager update`. In order to run the tests, the front end must be being served. Run au run in a separate terminal, and then run `protractor protractor.conf.js` which will start the tests. Protractor can be a little finicky, so you should let it run without interacting with other browser windows.
116
+
End to end testing is implemented using protractor, webdriver, and browserstack. First install protractor: `npm install -g protractor` then download the webdriver binaries: `webdriver-manager update`. In order to run the tests, the front end must be being served. Run au run in a separate terminal, and then run `protractor protractor.conf.js` which will start the tests. Protractor can be a little finicky, so you should let it run without interacting with other browser windows.
113
117
114
-
Mockapi to be used in the future.
118
+
Mockapi to be used in the future.
115
119
116
120
## Contribution Guidelines
117
121
118
-
- Issues are tracked on [github](https://github.com/urbanriskmap/petabencana.id/issues).
122
+
- Issues are tracked on [github](https://github.com/urbanriskmap/petabencana.id/issues).
0 commit comments