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
- This flow basically covers how you can configure your forms using form spec file (covered in a little while) to handle how the submission works. Like opening another form or redirecting to some page within the app or opening this link [here](https://www.youtube.com/watch?v=dQw4w9WgXcQ)
51
61
52
-
> This makes a local copy of the repository in your machine.
62
+

53
63
54
-
Once you have cloned the `enketo` repository in GitHub, move to that folder first using the change directory command.
64
+
## Hasura Submissions
65
+
- Covering how to handle form data submission to your database be it a sql or NoSql based db. In our setup we have used Hasura which creates an instant GraphQL data provider to use with Postgres based db
55
66
56
-
```sh
57
-
# This will change directory to a folder FOSSologyUI
- Just touching on to the offline capabilites offered right now. Here we have configured the form such that rather than failing form submissions entirely, it throws a warning/info message to the user indicating that the user is offline and is advised to resubmit the form once they're back online.
docker run --name enketo-redis-main -p 6379:6379 -d redis
78
-
docker run --name enketo-redis-cache -p 6380:6379 -d redis
79
-
npm install
80
-
npm i -g grunt
81
-
grunt develop
82
-
```
83
-
84
-
```sh
85
-
cd ../enketo-core
86
-
npm install
87
-
npm start
88
-
```
89
74
90
-
```sh
91
-
cd ../enketo-transformer
92
-
npm install
93
-
npm start
94
-
```
75
+
## File Upload
76
+
- One of the most important thing in any kind of form input is how to handle file uploads. Workflow module allows you to configure your cdn easily and point file uploads directly to the CDN effortleslly 💃 In our configuration we have used Minio to store all the uploaded files.
You can preview your form on http://localhost:8005/preview?xform=http://localhost:8080/getForm/SOE
102
80
103
-
### 5. For integrating your backend
81
+
#How to integrate custom backend?
104
82
105
-
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.
83
+
In order to achiever this, the submission url in the form spec (covered later below) with your hosted backend.
0 commit comments