kartevonmorgen

We make all sustainable companies and change initiatives visible on the map of tomorrow.
https://github.com/kartevonmorgen/kartevonmorgen.ts

Category: Sustainable Development
Sub Category: Knowledge Platforms

Keywords

ant-design kartevonmorgen map nextjs react typescript

Last synced: about 2 hours ago
JSON representation

Repository metadata

Mapping-Frontend to find and add sustainable Organisations (Initiatives, Companies) and Events on Kartevonmorgen.org / MapofTomorrow.org

README.md

Karte von morgen (Map of Tomorrow)

kartevonmorgen_v1

Mapping for Good

von morgen supports kindness, sustainability and joint action.
Everything that brings a little happiness to our world.
We believe that living in a de‐stressed, environmental‐friendly and
trust‐worthy society, is already in progress.
We want to support people in finding ways to embrace those values.

The Map von morgen is a website and app, that allows users to share their
favorite places in the world. Places that are forward‐thinking and inspiring.
The goal is to collect projects, companies and events that make a world of
tomorrow, already experienceable today.

Website: https://kartevonmorgen.org/

System-Architecture

This graph shows you, how the whole Map of tomorrow system interacts with each other
karte von morgen architecture

Dependencies

Installing Dependencies

  1. node.js: please refer to nvm
  2. yarn: please refer to the installation guideline
  3. project:
    1. git clone https://github.com/kartevonmorgen/kartevonmorgen-v1
    2. cd kartevonmorgen-v1
    3. yarn install
  4. database:
    1. python3: please refer to the official website
    2. cd scripts/python
    3. python3 -m venv venv
    4. . ./venv/bin/activate
    5. pip3 install -r requirements.txt
    6. python3 tag-frequency-cron.py --dev --fetch-all-on-start --sync-once --log-level debug (development)
      or python3 tag-frequency-cron.py --fetch-all-on-start --interval-for-all-tags 300 --interval-for-least-used-tags 60 (production)
    7. full list of options are available on Wiki

Development

The general pattern is:

  • server.*.js files are responsible for building and running "Karte von Morgen"
  • .env loads for both the production mode and the development mode
  • .env.development loads on the development mode but not the build mode.
    Hence any variable from the environment needed for building MUST be placed in server.build.*.js
    and for running in the server.start.*.js
  • server.dev.js runs the project on local machine. it compiles pages on runtime and has more verbose error reporting
    but comes with a considerable speed. suitable for development but not user testing or production

Development Mode With Hot-Reload

yarn run dev

Development Mode With Optimized Bundles

yarn run build:dev
yarn run start:dev

Production Mode

yarn run build:production
yarn run start:production

Process Scalability

After building the project you can run it with pm2

pm2 start "yarn run start:production" --name kartevonmorgen

Environment Variables

  • NEXT_PUBLIC_BASICS_API: is the address of OpenfairDB
  • DB_NAME: is the name of the database as the dependency of "Karte von Morgen" front-end
  • NEXT_PUBLIC_SELF_API: is the address of the server which "Karte von Morgen" is hosted
  • HOSTNAME: is the hostname interface e.g localhost or 0.0.0.0
  • PORT: is the port to listen on

Test Platform

  • OS: Ubuntu 20.04.2 LTS
  • RAM: 2 GB
  • Storage: 20 GB NVMe
  • CPU: 1 core 2 GHz

Backend

KVM uses the OpenFairDB as its backend.


Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 8 days ago

Total Commits: 650
Total Committers: 5
Avg Commits per committer: 130.0
Development Distribution Score (DDS): 0.068

Commits in past year: 34
Committers in past year: 3
Avg Commits per committer in past year: 11.333
Development Distribution Score (DDS) in past year: 0.088

Name Email Commits
Navid Kalaei n****i@g****m 606
Helmut Wolman H****t@k****g 34
Map of Tomorrow 1****w 7
dmitrap d****p@g****m 2
Alexander Reiner i****o@a****e 1

Committer domains:


Issue and Pull Request metadata

Last synced: 1 day ago

Total issues: 176
Total pull requests: 48
Average time to close issues: 6 months
Average time to close pull requests: 2 months
Total issue authors: 6
Total pull request authors: 14
Average comments per issue: 3.02
Average comments per pull request: 0.65
Merged pull request: 32
Bot issues: 0
Bot pull requests: 0

Past year issues: 25
Past year pull requests: 10
Past year average time to close issues: 27 days
Past year average time to close pull requests: 6 days
Past year issue authors: 2
Past year pull request authors: 2
Past year average comments per issue: 1.24
Past year average comments per pull request: 0.2
Past year merged pull request: 9
Past year bot issues: 0
Past year bot pull requests: 0

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/kartevonmorgen/kartevonmorgen.ts

Top Issue Authors

  • wellemut (152)
  • navid-kalaei (12)
  • alex0107 (6)
  • timmwille (4)
  • Vanya-ID (1)
  • PolinaMandrik (1)

Top Pull Request Authors

  • navid-kalaei (19)
  • wellemut (6)
  • marat0n (4)
  • astrology-noob (4)
  • Vanya-ID (3)
  • mapoftomorrow (3)
  • AndrusovN (2)
  • nekooei (1)
  • iJoise (1)
  • Dmitriy-Belskiy (1)
  • alex0107 (1)
  • romish-maker (1)
  • dmitrap (1)
  • Keizak (1)

Top Issue Labels

  • 0 bug (45)
  • 01 enhancement (27)
  • 20 frontend (21)
  • storypoint:0.5 (11)
  • 01 refactoring (10)
  • event-bugs (8)
  • 23 Iframes (7)
  • storypoint:1 (6)
  • storypoint:2 (3)
  • 21 backend (3)
  • good first issue (2)
  • storypoint:3 (2)
  • duplicate (1)
  • 02 documentation (1)
  • design-needed (1)

Top Pull Request Labels

  • 01 refactoring (1)

Dependencies

.github/workflows/dev.yml actions
  • actions/cache v3 composite
  • actions/checkout v2 composite
  • actions/setup-node v2 composite
  • actions/setup-python v2 composite
Dockerfile docker
  • node 16-buster build
package.json npm
  • @fortawesome/fontawesome-common-types ^0.2.34 development
  • @types/jest ^26.0.24 development
  • @types/leaflet ^1.5.19 development
  • @types/lodash ^4.14.168 development
  • @types/node ^14.14.16 development
  • @types/qs ^6.9.5 development
  • @types/react ^17.0.0 development
  • @types/react-dom ^17.0.2 development
  • @types/react-redux ^7.1.16 development
  • @types/react-virtualized ^9.21.11 development
  • @types/valid-url ^1.0.3 development
  • @typescript-eslint/eslint-plugin ^5.0.0 development
  • @typescript-eslint/parser ^5.0.0 development
  • autoprefixer ^10.4.4 development
  • eslint <8.0.0 development
  • eslint-config-airbnb ^19.0.2 development
  • eslint-config-airbnb-typescript ^16.1.0 development
  • eslint-config-next 12.0.4 development
  • file-loader ^6.2.0 development
  • jest ^27.0.6 development
  • moment-locales-webpack-plugin ^1.2.0 development
  • postcss ^8.4.12 development
  • tailwindcss ^3.0.24 development
  • ts-jest ^27.0.3 development
  • typescript ^4.4.4 development
  • @ant-design/colors ^5.0.1
  • @ant-design/icons ^4.4.0
  • @fortawesome/fontawesome-free ^5.15.2
  • @fortawesome/fontawesome-svg-core ^1.2.34
  • @fortawesome/free-brands-svg-icons ^5.15.2
  • @fortawesome/free-regular-svg-icons ^5.15.2
  • @fortawesome/free-solid-svg-icons ^5.15.2
  • @fortawesome/react-fontawesome ^0.1.14
  • @fragaria/address-formatter ^2.4.0
  • @next/bundle-analyzer ^10.1.3
  • @reduxjs/toolkit ^1.5.0
  • ahooks ^2.9.4
  • antd ^4.17.0-alpha.9
  • axios ^0.21.1
  • babel-plugin-import ^1.13.3
  • color2k ^2.0.0
  • cors ^2.8.5
  • csv-parse ^4.16.0
  • dotenv ^8.2.0
  • highlight.js ^11.2.0
  • http-status-codes ^2.1.4
  • immer ^8.0.1
  • isemail ^3.2.0
  • leaflet ^1.7.1
  • libphonenumber-js ^1.9.19
  • lodash ^4.17.21
  • moment ^2.29.1
  • next ^12.0.3
  • next-plugin-antd-less ^1.0.6
  • next-translate 1.0.1
  • nominatim-browser ^2.1.0
  • opening_hours ^3.6.0
  • qs ^6.9.6
  • react 17.0.1
  • react-copy-to-clipboard ^5.0.4
  • react-dom 17.0.1
  • react-ionicons ^4.2.0
  • react-leaflet ^3.0.5
  • react-lowlight ^2.0.0
  • react-redux ^7.2.2
  • react-virtualized ^9.22.3
  • redux ^4.0.5
  • sqlite3 ^5.0.2
  • styled-components ^5.2.3
  • styled-jsx ^3.4.4
  • swr ^0.4.0
  • title-case ^3.0.3
  • valid-url ^1.0.9
yarn.lock npm
  • 1034 dependencies
scripts/python/requirements.txt pypi
  • SQLAlchemy ==1.4.27
  • aioschedule ==0.5.2
  • aiosqlite ==0.17.0
  • certifi ==2021.10.8
  • chardet ==4.0.0
  • gevent ==21.8.0
  • greenlet ==1.1.2
  • grequests ==0.6.0
  • idna ==3.3
  • importlib-metadata ==4.8.2
  • loguru ==0.5.3
  • python-dotenv ==0.19.2
  • requests ==2.26.0
  • schedule ==1.1.0
  • typing-extensions ==4.0.1
  • urllib3 ==1.26.7
  • zipp ==3.6.0
  • zope.event ==4.5.0
  • zope.interface ==5.4.0

Score: 5.68697535633982