s-pic / strehlow-react

Little website introducing the estate of friends of mine using react and mapbox-gl-js
https://strehlow-uckermark.com.
0 stars 0 forks source link

Netlify Status Greenkeeper badge

About

The source code behind https://strehlow-uckermark.netlify.app/home.

This is hobby project that aims to establish a website for peers of mine. I started the project using Ember.js which was appealing in the beginning but a hassle when it came to set up a proper component lifecycle for a Map component using third party libraries. This is the old repo: https://github.com/geomC/strehlow-ember.

Furthermore, this new start incorporates what I have learned developing for FixMyBerlin.

As development boiler plate, webkid´s React Starterkit is used, thanks guys!

Usage

Setup

Development requires optaining a personal mapbox API Token, since the API key stored in the repo is bound to the host where the app is deployed to later on.

Store the key in ./.env like MAPBOX_KEY_DEV={INSERT-YOUR-KEY-HERE}. Otherwise webpack will throw an error complaining about the missing environment variable.

Development

Builds the application and starts a webserver with hot loading.

$ npm run start

The app runs on localhost:8080

Build

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

$ npm run build

CI/CD

Netlfiy is used for continious deployments. Production builds can be viewed at https://strehlow-uckermark.com.

Images