Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
olavpo committed Nov 27, 2023
0 parents commit 1d68bd3
Show file tree
Hide file tree
Showing 13 changed files with 18,476 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .eslintrc.js
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
}
};
8 changes: 8 additions & 0 deletions .gitignore
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
42 changes: 42 additions & 0 deletions README.md
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!"
}
```
5 changes: 5 additions & 0 deletions d2auth.template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"baseUrl": "localhost:8080/dhis",
"username": "admin",
"password": "district"
}
Loading

0 comments on commit 1d68bd3

Please sign in to comment.