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
Size: 767
Language: TypeScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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.
Tools we use
Client
npm install
(located under client
directory).npm start
.Server
cd server/config
then cp local_settings.template local_settings.py
and modify it by your local postgres (database) settings.pipenv install --dev
(located under server
directory, you must have pipenv installed).python3 manage.py migrate
.python3 manage.py createsuperuser
and follow the instructions.python3 manage.py runserver
.Client
npm run lint
to check for lint mistakes.npm run test
to execute the unit tests via Karma.npm run e2e
to execute the end-to-end tests via Protractor.Server
pycodestyle --show-source --max-line-length=120 --exclude=pension/migrations --show-pep8 .
to check for lint mistakes.isort . --recursive --check-only
to check for import mistakes.python manage.py test
to run the unit tetst.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
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 is done using sentry.io.
To see the log ask the team leader an access to the openPension email account.
Not yet..
Just fork and do a pull request (;