GithubHelp home page GithubHelp logo

thibaudcolas / great-international-ui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hippogriffic/great-international-ui

0.0 2.0 0.0 2.92 MB

License: MIT License

Python 40.53% CSS 13.69% JavaScript 17.58% HTML 26.44% Makefile 1.75%

great-international-ui's Introduction

great-international-ui

Great International UI

circle-ci-image codecov-image


Requirements

Python 3.6

Local installation

$ git clone https://github.com/uktrade/great-international-ui
$ cd great-international-ui
$ make

Directory Forms

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

Debugging

Setup debug environment

$ make debug

Run debug webserver

$ make debug_webserver

Run debug tests

$ make debug_test

CSS development

Requirements

node SASS gulp

$ npm install  # to install yarn
$ yarn install # use yarn for installing all other javascript dependencies

Update CSS under version control

$ make compile_css

Rebuild the CSS files when the scss file changes

$ make watch_css

Session

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.

Cookies

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

great-international-ui's People

Contributors

eadpearce avatar kenneth-siu avatar sdonk avatar ababic avatar

Watchers

Thibaud Colas avatar  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.