This repository has been archived by the owner on May 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from zimmerman-team/develop
Update
- Loading branch information
Showing
53 changed files
with
4,652 additions
and
2,929 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,5 +72,7 @@ workflows: | |
- deploy | ||
filters: | ||
branches: | ||
only: master | ||
only: | ||
- master | ||
- develop | ||
# adf |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,111 @@ | ||
## What is the Insinger Monitoring & Evaluation Tool? | ||
# VIRA | ||
|
||
This tool allows you to easily generate reports on the basis of projects that have been co-funded by the Insinger Foundation. After logging in, acces is granted to project information and progress can be reported. These reports allow the Insinger Foundation to monitor the effectiveness of contributions more effectively. The project is split into a front and back-end repository for sake of clear development. | ||
</a> | ||
[![CircleCI](https://circleci.com/gh/zimmerman-team/VIRA.svg?style=svg&circle-token=f1c9c39b17f9c53166ffa2440e707cd75aaab5d5)](https://circleci.com/gh/zimmerman-team/VIRA) | ||
|
||
## What VIRA? | ||
|
||
This tool allows you to easily generate reports on the basis of projects that have been co-funded by your foundation. After signing in, access is granted to project information and the progress can be reported. These reports allow your foundation to monitor the effectiveness of contributions more effectively. | ||
|
||
## About the project | ||
|
||
- Website: Private | ||
- Authors: <a href="https://www.zimmerman.team/" target="_blank">Zimmerman</a> | ||
* License: AGPLv3 | ||
- Github Backend Repo: <a href="https://github.com/zimmerman-zimmerman/insinger-backend" target="_blank">github.com/zimmerman-zimmerman/insinger-backend</a> | ||
- Github Frontend Repo: <a href="https://github.com/zimmerman-zimmerman/insinger-frontend" target="_blank">github.com/zimmerman-zimmerman/insinger-frontend</a> | ||
- Authors: <a href="https://www.zimmerman.team" target="_blank">Zimmerman</a> | ||
- License: AGPLv3 | ||
- Github Backend Repo: <a href="https://github.com/zimmerman-team/VIRA" target="_blank">github.com/zimmerman-team/VIRA</a> | ||
- Github Frontend Repo: <a href="https://github.com/zimmerman-team/VIRA.frontend" target="_blank">github.com/zimmerman-team/VIRA.frontend</a> | ||
|
||
--- | ||
|
||
## Requirements | ||
|
||
For development, you will only need Node.js and a node global package, Yarn, installed in your environement. | ||
|
||
### Node | ||
|
||
- #### Node installation on Windows | ||
|
||
Just go on [official Node.js website](https://nodejs.org/) and download the installer. | ||
Also, be sure to have `git` available in your PATH, `npm` might need it (You can find git [here](https://git-scm.com/)). | ||
|
||
- #### Node installation on Ubuntu | ||
|
||
You can install nodejs and npm easily with apt install, just run the following commands. | ||
|
||
$ sudo apt install nodejs | ||
$ sudo apt install npm | ||
|
||
- #### Other Operating Systems | ||
You can find more information about the installation on the [official Node.js website](https://nodejs.org/) and the [official NPM website](https://npmjs.org/). | ||
|
||
If the installation was successful, you should be able to run the following command. | ||
|
||
$ node --version | ||
vX.X.X | ||
|
||
$ npm --version | ||
X.X.X | ||
|
||
If you need to update `npm`, you can make it using `npm`! Cool right? After running the following command, just open again the command line and be happy. | ||
|
||
$ npm install npm -g | ||
|
||
### | ||
|
||
### Yarn installation | ||
|
||
After installing node, this project will need yarn too, so just run the following command. | ||
|
||
$ npm install -g yarn | ||
|
||
### | ||
|
||
### MongoDB installation | ||
|
||
You can follow the official [documentation](https://docs.mongodb.com/manual/installation/#mongodb-community-edition-installation-tutorials) to install MongoDB in your preferred OS. | ||
Just make sure that you install version 4.x.x of MongoDB | ||
|
||
--- | ||
|
||
## Install | ||
|
||
$ git clone https://github.com/zimmerman-team/VIRA.git | ||
$ cd VIRA | ||
$ yarn install | ||
|
||
## Configure app | ||
|
||
Create an `.env` file in the root directory and add the following: | ||
|
||
``` | ||
REACT_APP_AE_API_CLIENT_ID=<Auth0 Authentication Extension API client id> | ||
REACT_APP_AUTH_DOMAIN=<Auth0 tenant custom domain> | ||
REACT_APP_AE_API_CLIENT_SECRET=<Auth0 Authentication Extension API client secret> | ||
REACT_APP_AE_API_URL=<Auth0 Authentication Extension API URL> | ||
REACT_APP_POSTMARK_CLIENT_ID=<Postmark client id> | ||
REACT_APP_POSTMARK_TEMPLATE_WELCOME=<Postmark welcome email template id> | ||
REACT_APP_POSTMARK_TEMPLATE_RESET=<Postmark reset password template id> | ||
REACT_APP_POSTMARK_TEMPLATE_NOTIFICATION=<Postmark project notification email template id> | ||
REACT_APP_PROJECT_URL=<http://localhost:3000 for running locally | https://something.com for deployed runs> | ||
REACT_APP_BACKEND_PORT=4200 | ||
REACT_APP_BACKEND_URL=http://localhost:4200 | ||
REACT_APP_MONGO_DB_URL=mongodb://localhost:27017/vira | ||
REACT_APP_DATA_FILE=<name of the data file in server/scripts, must be a csv file> | ||
``` | ||
|
||
## Parse data | ||
|
||
$ yarn import-data | ||
|
||
## Installing | ||
## Create and invite users based on data | ||
|
||
REPLACE WITH STEFANOS INSTRUCTIONS INCLUDING : | ||
$ yarn check-invite-new-users | ||
|
||
- NEED FOR THAT FRONT_END | ||
- IMPORT OF DATA FILE TO POPULATE | ||
- AUTH0 WORKINGS | ||
- CRONJOBS FOR THEM E-MAILS | ||
## Running the project | ||
|
||
## Can I contribute? | ||
$ yarn start | ||
|
||
Yes! We are mainly looking for coders to help on the project. If you are a coder feel free to _Fork_ the repository and send us Pull requests! | ||
## Run tests | ||
|
||
$ yarn start-test-api |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,34 @@ | ||
export const policyPriorities: { label: string; value: string }[] = [ | ||
{ label: 'charts.items.refugees', value: 'Refugees' }, | ||
{ label: 'charts.items.drug_use', value: 'Drug use' }, | ||
{ label: 'charts.items.elderly', value: 'The Elderly' }, | ||
{ label: 'charts.items.prostitution', value: 'Prostitution' }, | ||
{ label: 'charts.items.refugees', value: 'Helping refugees' }, | ||
{ | ||
label: 'charts.items.drugs', | ||
value: 'Reducing drug abuse & helping drug addicts', | ||
}, | ||
{ label: 'charts.items.sustainability', value: 'Sustainability' }, | ||
{ label: 'charts.items.prostitution', value: 'Reducing forced prostitution' }, | ||
{ | ||
label: 'charts.items.poverty', | ||
value: 'Poverty reduction with a focus on youth and children', | ||
value: 'Poverty reduction', | ||
}, | ||
{ | ||
label: 'charts.items.emancipation', | ||
value: 'Emancipation of women and girls', | ||
}, | ||
{ label: 'charts.items.homelessness', value: 'Homelessness' }, | ||
{ | ||
label: 'charts.items.prisoner', | ||
value: 'Prisoner rehabilitation / reintegration', | ||
value: 'Prisoner rehabilitation', | ||
}, | ||
{ | ||
label: 'charts.items.children_youth_engagement', | ||
value: 'Children & Youth engagement', | ||
}, | ||
{ | ||
label: 'charts.items.vulnerable_groups', | ||
value: | ||
'Vulnerable groups in society (i.e. lower-income, elderly, disabled)', | ||
}, | ||
{ | ||
label: 'charts.items.heritage', | ||
value: 'Cultural heritage', | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
export const sdgColors = { | ||
1: '#E5243D', | ||
2: '#DDA73B', | ||
3: '#4CA146', | ||
4: '#C7212F', | ||
5: '#EF402E', | ||
6: '#28BFE6', | ||
7: '#FBC412', | ||
8: '#A31C44', | ||
9: '#F26A2E', | ||
10: '#E01383', | ||
11: '#F89D2A', | ||
12: '#BF8D2C', | ||
13: '#407F46', | ||
14: '#1F96D4', | ||
15: '#59BA47', | ||
16: '#136A9F', | ||
17: '#14496B', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export const targetGroupColors = { | ||
'Children & youth (up to +/- 30 years)': '#DBA74A', | ||
'The Elderly (65+)': '#DD1481', | ||
'Women & Girls': '#A01D45', | ||
Refugees: '#54A353', | ||
'People with lower income': '#E12540', | ||
'Homeless people': '#EB4137', | ||
'People with disabilities': '#C42233', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
["Pillar 1: Social good", "Pillar 2: Cultural heritage"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[ | ||
"Poverty reduction", | ||
"Children & Youth engagement", | ||
"Vulnerable groups in society", | ||
"Helping refugees", | ||
"Reducing forced prostitution", | ||
"Reducing drug abuse & helping drug addicts", | ||
"Emancipation of women and girls", | ||
"Prisoner Rehabilitation", | ||
"Sustainability" | ||
] |
Oops, something went wrong.