Skip to content

Commit

Permalink
Chore: Setup
Browse files Browse the repository at this point in the history
  • Loading branch information
ChakshuGautam committed May 9, 2022
1 parent f2c9d90 commit d259661
Show file tree
Hide file tree
Showing 8 changed files with 177 additions and 16,417 deletions.
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v14.19.1
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ cd ../forms
python3 -m http.server
```

You can preview your form on http://localhost:8005/preview?xform=http://localhost:8000/sample.xml
You can preview your form on http://localhost:8005/preview?xform=http://localhost:8080/getForm/SOE

### 5. For integrating your backend
Customize the [submission url](https://github.com/Samagra-Development/enketo/blob/main/enketo-express/public/js/src/module/connection.js#L150) with your hosted backend.
Expand All @@ -105,3 +105,5 @@ Customize the [submission url](https://github.com/Samagra-Development/enketo/blo

- [Encrypting query parameters on rendering the enketo form. ](https://github.com/Samagra-Development/enketo/issues/1)
- Writing a API for changing an XML form directly from it.
- add npm scripts for install

2 changes: 1 addition & 1 deletion enketo-core/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

169 changes: 97 additions & 72 deletions enketo-express/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion enketo-express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"puppeteer": "^10.2.0",
"redis": "^3.1.2",
"request": "^2.88.2",
"request-filtering-agent": "^1.0.7",
"request-filtering-agent": "^1.0.7",
"serve-favicon": "^2.5.0",
"time-grunt": "^2.0.0",
"valid-url": "^1.0.9",
Expand Down
24 changes: 24 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "enketo",
"version": "1.0.0",
"description": "Enketo",
"scripts": {
"start-redis-cache": "docker run --name enketo-redis-cache -p 6380:6379 -d redis",
"start-redis-main": "docker run --name enketo-redis-main -p 6379:6379 -d redis",
"start-ec": "cd enketo-core && npm start",
"start-ee": "cd enketo-express && grunt develop",
"start-fs": "cd form-server && source venv/bin/activate && python3 app.py",
"start-static": "cd form-server/static/forms && python3 -m http.server",
"start-web": "cd wrapper && npm start"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ChakshuGautam/enketo.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/ChakshuGautam/enketo/issues"
},
"homepage": "https://github.com/ChakshuGautam/enketo#readme"
}
Loading

0 comments on commit d259661

Please sign in to comment.