Giter Site home page Giter Site logo

find.state.gov's Introduction

F Interagency Network Databank

To support increased efficiencies and effectiveness in how USG agencies incorporate country performance data into foreign policy decision making regarding policy, strategies, and programs, the Office of U.S. Foreign Assistance Resources (F) is assembling a database of country-level performance indicators. Fโ€™s database will primarily contain aggregated information from publicly available sources, and is to be communicated in data form as well as visually through charts and maps. This system was tentatively called the Databank and is now referred to as the F Interagency Network Databank (FIND).

This site is developed by the Office of eDiplomacy. For questions or concerns, please contact [email protected]

Installation

npm install

Running Dev Server

npm run dev

Usage

Structure

We have a seperation of concerns here. The API (/api/*) and the UI (/src/*). Both are separate node services. The api is Express and extended with Kraken. The UI is React/Redux and rendered on the server for Universal JavaScript.

React/Redux

EXAMPLES:

Map

Redux handles all of the map state/data in a tree structure. Actions are the only thing that can intialize a call to change the map state. Actions are simply a dictionary of terms that describe what event can change the state. Reducers produce the new state using the actions, without mutating the previous state. This is Functional Programming. Every possible action that can be acted on must be accounted for: ['ACTION_NAME, ACTION2_NAME']. After a new state is established, React will take notice and then change the UI that corresponds on the changed state. In the case of the Map, a React Component designed with Leaflet will be the underlying UI that is changed/rerendered.

TODO: Link to code examples in the project, define actual actions

map {
	baseGeography: {'GEOJSON_OF_MAP'},
	selectedGeography: [
		{
			name: 'Example_CountryName',
			unit: 'Data_Associated_With_Country'
		}
	]
}

find.state.gov's People

Contributors

backnotprop avatar concolato avatar dstepp avatar leroybryant avatar

Watchers

 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.