All Projects → meirim-org → meirim

meirim-org / meirim

Licence: MIT license
Meirim is an open-source smart city application that facilitates transparency in urban planning.

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to meirim

Awesome Humane Tech
Promoting Solutions that Improve Wellbeing, Freedom and Society
Stars: ✭ 2,234 (+5628.21%)
Mutual labels:  democracy
elections-api
Serving JSON for all elections since 1992
Stars: ✭ 16 (-58.97%)
Mutual labels:  democracy
spatial-microsim-book
Code, data and prose of the book: Spatial Microsimulation with R
Stars: ✭ 98 (+151.28%)
Mutual labels:  urban-planning
Theyworkforyou
Keeping tabs on the UK's parliaments and assemblies
Stars: ✭ 173 (+343.59%)
Mutual labels:  democracy
CityScoreToolkit
Open-source version of Boston's CityScore performance dashboard
Stars: ✭ 42 (+7.69%)
Mutual labels:  smart-cities
digital
Public documentation and wiki for DoIT’s Digital team. Monorepo for new services.
Stars: ✭ 17 (-56.41%)
Mutual labels:  smart-cities
Dapp
Censorship resistant democracies.
Stars: ✭ 1,326 (+3300%)
Mutual labels:  democracy
bikenwgrowth
Source code for the paper "Growing urban bicycle networks", exploring algorithmically the limitations of urban bicycle network growth
Stars: ✭ 39 (+0%)
Mutual labels:  urban-planning
Mat-O-Wahl
🇩🇪 Mat-O-Wahl - Ein einfach zu bedienender, freier Open Source Wahl-O-Mat Klon fuer jedermann ### 🇬🇧 🇺🇸 A simple to handle, free "Voting Advice Application" / "Electoral Compass" alternative
Stars: ✭ 27 (-30.77%)
Mutual labels:  democracy
quadratic-voting
Real-time Quadratic Voting dashboard to encourage mathematically optimal voting in democratic communities.
Stars: ✭ 74 (+89.74%)
Mutual labels:  democracy
Devforthaifreedom
The hackathon to build technologies for Thailand's journey to democracy and freedom. #devปลดแอก
Stars: ✭ 175 (+348.72%)
Mutual labels:  democracy
gis4wrf
QGIS toolkit 🧰 for pre- and post-processing 🔨, visualizing 🔍, and running simulations 💻 in the Weather Research and Forecasting (WRF) model 🌀
Stars: ✭ 137 (+251.28%)
Mutual labels:  urban-planning
sustainable-cities-online-courses
My path to a free self-taught education in Sustainable Cities!
Stars: ✭ 15 (-61.54%)
Mutual labels:  smart-cities
Democracyos
Democracia en Red is focusing on specific implementations of DemocracyOS. We are working now working with governments and activists all over Latin America. If you are interested in our online participation tools you can check them out on our site.
Stars: ✭ 1,753 (+4394.87%)
Mutual labels:  democracy
a4-meinberlin
The central participation platform of the city of Berlin, Germany
Stars: ✭ 32 (-17.95%)
Mutual labels:  citizen-participation
Democracy Client
DEMOCRACY App Client
Stars: ✭ 98 (+151.28%)
Mutual labels:  democracy
uk planning scraper
A Ruby gem to get planning applications data from UK council websites.
Stars: ✭ 19 (-51.28%)
Mutual labels:  urban-planning
democracy
Tools for peer-to-peer privacy with Ethereum and AZTEC
Stars: ✭ 36 (-7.69%)
Mutual labels:  democracy
urban-pulse
A standalone version of Urban Pulse
Stars: ✭ 49 (+25.64%)
Mutual labels:  urban-planning
openaustralia-parser
Parser component for OpenAustralia.org
Stars: ✭ 28 (-28.21%)
Mutual labels:  democracy

Meirim.org

The goal of this project is to empower citizens to effectively organize for their quality of life in their cities and to ensure information about protests is accessible.

Getting Started

This project is under development and has three main parts - backend, frontend and crawler. Currently two separate packages live in this repository - server (which includes the crawler code) and client.

Setup instructions for development

Prerequisites

Things you need to install:

  • Git
  • Node.js (we support and run on version 14.x)
  • MySQL (required only for the backend & crawler) Version 5.7

Once you have these you can clone the code:

$ git clone [email protected]:meirim-org/meirim.git
$ cd meirim

Instructions for backend

Cd into the package directory and install dependencies:

$ cd server
$ npm install

Connect to your MySQL instance:

$ mysql -u root -p

Create and setup a database for the project:

CREATE DATABASE meirim character set UTF8 collate utf8_bin;
SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY,',''));
exit;

Edit your local configuration file and set your database connection details and email smtp settings (if needed). The default configuration files resides at server/config/default.json. To override configuration values without accidentally committing them make a copy of the file at server/config/local.json, delete whichever values you don't wish to override and leave the ones you do and change their values.

Run all database migrations:

$ $(npm bin)/knex migrate:latest

Finally, run the service:

$ npm start

The service will then be available on port 3001.

Instructions for frontend

Cd into the package directory and install dependencies:

$ cd client
$ npm install

Nothing needs to be set up specifically for the frontend (however a working backend service would make it a bit more useful). It can be started using:

$ npm start

And will then be available at http://localhost:3000

Running both backend and frontend

Both the backend and the frontend should be run separately when developing for the auto-reload capabilities of webpack-dev-server. The backend will run on port 3001 by default, and the frontend will run on port 3000 and proxy requests destined to the backend from any path beginning with "/api" to the service at port 3001 (proxy settings live in client/src/setupProxy.js).

Instructions for crawler

To run the crawler (for testing or seeding the database with plan data) you must first install all dependencies required by Chromium (which is used by puppeteer) which vary from system to system.

If puppeteer is not working properly, check the project's troubleshooting information.

To run the crawler after installing server dependencies and setting up a database (can be killed at any time using Ctrl+C):

$ cd server
$ npm run crawl

Testing

Tests require all prerequisites to be fulfilled and a database instance to be available at port 33060 on localhost. The odd port is for preventing people from running the tests on development databases accidentally (and can be changed by overriding the test section at server/config/default.json).

Backend tests

$ cd server
$ npm run test

End-to-end tests

Cypress is used for e2e tests and is meant to test the frontend and backend as served using the serve script.

First build the frontend and run the serve script:

$ cd client
$ npm run build
$ cd ../server
$ npm run serve

Then the tests can be run (use a browser of your choice out of your installed browsers. To see which browsers cypress recognizes use $(npm bin)/cypress info):

$ cd ../client
$ $(npm bin)/cypress run --browser chromium

Running in production

We use pm2 to run the service in production.

First you must build the frontend react site, then the service (serving both the backend and frontend) can be started:

$ cd client
$ npm run build
$ cd ..
$ pm2 start ecosystem.config.js --env production

Set up cron to schedule three jobs - crawling for new data, emailing alerts to users and aggregating impressions:

$ crontab -e
0 14 * * *  cd /path_to_code/meirim/ && NODE_ENV='production' /usr/bin/node /path_to_code/meirim/bin/iplan >> /path_to_code/meirim/logs/combined.log 2>&1
* * * * *  cd /path_to_code/meirim/ && NODE_ENV='production' /usr/bin/node /path_to_code/meirim/bin/send_emails >> /path_to_code/meirim/logs/combined.log 2>&1
30 * * * *  cd /path_to_code/meirim/ && NODE_ENV='production' /usr/bin/node /path_to_code/meirim/bin/aggregate_views >> /path_to_code/meirim/logs/combined.log 2>&1
15 * * * * cd /home/ec2-user/meirim/server && node bin/plan_status_change >> /home/ec2-user/meirim/server/logs/combined.log 2>&1

Further info

You can find more technical info about the project under the docs folder.

Contributing

We are thankful for any comments, suggestions, issue reports and pull requests anyone might wish to help with. We will do our best to acknowledge, review and reply to these contributions to the best of our abilities (we are all volunteers).

For methods of communicating with us, please see our website.

Authors

See the list of contributors who participated in this project <3.

License

This project is licensed under the MIT License - see the LICENSE.md file for details. The rest is licensed under a Creative Commons Attribution 4.0 International License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].