-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 1d68bd3
Showing
13 changed files
with
18,476 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
module.exports = { | ||
"env": { | ||
"browser": true, | ||
"es6": true | ||
}, | ||
"extends": "eslint:recommended", | ||
"parserOptions": { | ||
"sourceType": "module", | ||
"ecmaVersion": 9 | ||
}, | ||
"rules": { | ||
"indent": [ | ||
"error", | ||
4 | ||
], | ||
"quotes": [ | ||
"error", | ||
"double" | ||
], | ||
"semi": [ | ||
"error", | ||
"always" | ||
], | ||
"no-console": "off" | ||
}, | ||
"globals": { | ||
"require": true, | ||
"__dirname": true, | ||
"process": true, | ||
"module": true, | ||
"DHIS_CONFIG": true | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.tmp | ||
compiled | ||
build | ||
manifest.webapp | ||
node_modules | ||
.vscode | ||
bin | ||
d2auth.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# DHIS2 App Template for Dummies | ||
Basic DHIS2 app skeleton. | ||
|
||
## License | ||
© Copyright | ||
|
||
|
||
## Getting started | ||
|
||
### Install dependencies | ||
To install app dependencies: | ||
|
||
``` | ||
yarn install | ||
``` | ||
|
||
### Compile to zip | ||
To compile the app to a .zip file that can be installed in DHIS2: | ||
|
||
``` | ||
yarn run zip | ||
``` | ||
|
||
### Start dev server | ||
To start the webpack development server: | ||
|
||
``` | ||
yarn start | ||
``` | ||
|
||
By default, webpack will start on port 8081, and assumes DHIS2 is running on | ||
http://localhost:8080/dhis with `admin:district` as the user and password. | ||
|
||
A different DHIS2 instance can be used to develop against by adding a `d2auth.json` file like this: | ||
|
||
``` | ||
{ | ||
"baseUrl": "localhost:9000/dev", | ||
"username": "john_doe", | ||
"password": "District1!" | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"baseUrl": "localhost:8080/dhis", | ||
"username": "admin", | ||
"password": "district" | ||
} |
Oops, something went wrong.