$ git clone https://github.com/uktrade/great-international-ui
$ cd great-international-ui
$ make
Form submissions are powered by directory-forms-api. Set that up locally then generate a API client here and add the following entries to your conf/.env
file.
Environment variable | Notes |
---|---|
DIRECTORY_FORMS_API_API_KEY | Populate from client access_key |
DIRECTORY_FORMS_API_SENDER_ID | Populate from client identifier |
$ make debug
$ make debug_webserver
$ make debug_test
$ npm install # to install yarn
$ yarn install # use yarn for installing all other javascript dependencies
$ make compile_css
$ make watch_css
Signed cookies are used as the session backend to avoid using a database. We therefore must avoid storing non-trivial data in the session, because the browser will be exposed to the data.
To be able to test cookies locally add the following to your /etc/hosts
:
127.0.0.1 int.trade.great
Then run the server and visit int.trade.great:8013