Giter Site home page Giter Site logo

gform-frontend's Introduction

gform-frontend

Build Status Download

Gform is a system for offering more straightforward tax forms online using based on a template of the form in json.

This frontend presents those forms based on templates fetched from the backend. It handles any authorisation using either eeitt authorisation or government gateway, when required it can also manage enrolment for government gateway. Data values entered on the forms are persisted by the backend and ultimately submitted to DMS by the backend.

Running Gform Locally with Service Manager

When running locally:

sm --start GFORM_DEP -f

runs all dependent services of gform.

when using gform:

sm --start GFORM_ALL -f

run dependencies and gform.

Enter a form

To try entering a form locally, with sample data in the gform backend and using the auth-login-stub, browse to:

(http://localhost:9949/auth-login-stub/gg-sign-in?continue=http://localhost:9195/submissions/new-form/aaa999)

to use this form you will have to upload a template see below.

Uploading sample data

Upload a form template: Note you need to be in the gform project.

curl http://localhost:9196/gform/formtemplates -H "Content-Type: application/json" -d '@sample-data/template-aaa999.json'

this template is in json and has several required fields.

Upload eeitt test data for legacy eeitt auth if assigned in template:

curl --data-binary '@sample-data/EEITTTestUsers.txt' http://localhost:9191/eeitt/etmp-data/live/business-users

the backend can be accessed through the frontend proxy, to try this locally:

curl -s http://localhost:9195/submissions/test-only/proxy-to-gform/gform/formtemplates -H "Content-Type: application/json" -H "X-requested-with: foo" -d '@sample-data/template-aaa999.json'

you can proxy to any backend call. only when test only routes are enabled.

(Note that you will need to have configured your local gform-frontend for test only routes and CSRF bypass, as in for example app-config-dev

License

This code is open source software licensed under the Apache 2.0 License

gform-frontend's People

Contributors

lutnos avatar pawelpanasewicz avatar paul-request avatar danielconnelly avatar ralreiroe avatar harrisonbaxter avatar vlachjosef avatar cavster avatar josef-vlach avatar dimitraka71 avatar thebailers avatar geoffreywatson avatar hmrc-web-operations avatar danielajibike avatar

Watchers

James Cloos avatar Nathan Dolan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.