d-m- / fixmy.frontend

FixMyBerlin - A Mobility Platform for Berlin

Home Page:https://fixmyberlin.de

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🚲 🚲 🚲

FixMyBerlin - A Mobility Platform for Berlin

You can check out the live version here.

fixmy screenshot

Installation

$ npm install

Development

Builds the application and starts a webserver with hot loading. Runs on localhost:8080

$ npm start

Build

Builds a minified version of the application in the build folder.

$ npm run build

Deployment

Each branch gets automatically deployed on netlify:

Embed Mode

If you want to test the embed mode, you just need to add a query paramter to the url: http://localhost:8080/planungen?embed=1. There is also a deployed production version: https://embed.fixmyberlin.de/.

The project is based on wbkd/react-starter.

Kataster Standalone

In order to create the standalone version we are using the env variables BASE_NAME, ENTRY_POINT and KATASTER_PATH.

  • BASE_PATH: used in the webpack config and the router history. If you want to deploy the standalone version somewhere other than root you need to set this variable.
  • ENTRY_POINT: needs to be set in order to use the kataster app as an entry point
  • KATASTER_PATH: base url of the kataster app. Should be empty for the standalone version

The variables are already configured when you are using the following tasks:

Development:

$ npm run start:strassencheck

Build:

$ npm run build:strassencheck

About

FixMyBerlin - A Mobility Platform for Berlin

https://fixmyberlin.de

License:GNU Affero General Public License v3.0


Languages

Language:JavaScript 90.3%Language:TypeScript 7.9%Language:HTML 1.7%Language:Shell 0.1%