hasadna/open_pension

Name: open_pension

Owner: The Public Knowledge Workshop

Description: :chart_with_upwards_trend: Open Pension is a "Hasadna" project, that aimed to revealing the secrets behind the Israeli pension market.

Created: 2016-04-04 17:59:34.0

Updated: 2018-05-22 04:57:50.0

Pushed: 2018-05-22 06:36:22.0

Homepage:

Size: 767

Language: TypeScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Open Pension

license Build Status Dependency Status codecov Contributors Gitter

The repo contains the server & the client parts of the Open Pension project. Open Pension is a “Hasadna” project, that aimed to revealing the secrets behind the Israeli pension market.

Our Stack

Tools we use

Pre Requirements
  1. Make sure you have Python 3.x and pip installed.
  2. NodeJS
  3. Angular CLI
  4. PostgreSQL
Installation

Client

  1. Install requirements with npm install (located under client directory).
  2. Run the server with npm start.
  3. Open the browser at http://localhost:4200.

Server

  1. cd server/config then cp local_settings.template local_settings.py and modify it by your local postgres (database) settings.
  2. Install requirements with pipenv install --dev (located under server directory, you must have pipenv installed).
  3. Migrate the data with python3 manage.py migrate.
  4. Create a superuser python3 manage.py createsuperuser and follow the instructions.
  5. Run the server with python3 manage.py runserver.
  6. Open the browser at http://localhost:8000.
Tests

Client

Server

Translation

Client

Not yet..

Server

To make new strings for translation use the command

on manage.py makemessages -l he
on manage.py compilemessages -l he
Data

If you need the data itself use the --recursive flag when you git clone this repo.

Old Database

To import the old database, first download it and then put it in server/data directory, open the pension_data_all.csv.gz file (extract the pension_data_all.csv from it). Then run python3 manage.py import_old_db.

This script will search for pension_data_all.csv file in the server/data directory and import the csv file to our current database.

Dummy Blog Posts

To create dummy blog posts just run python3 manage.py create_blog_dummy_data.

Logging

Logging is done using sentry.io.

To see the log ask the team leader an access to the openPension email account.

Deployment

Not yet..

Contribute

Just fork and do a pull request (;


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.