Code Monkey home page Code Monkey logo

bvellek / lumen-spot-app Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 83.19 MB

A fully responsive, server side rendered React Redux web application to help photographers find sunrise/sunset info, weather conditions, and inspiration photos based on location.

Home Page: https://lumen-spot.herokuapp.com/

HTML 31.60% CSS 30.87% JavaScript 37.54%
continuous-integration es6 express isomorphic javascript node photography pug react redux responsive webpack2

lumen-spot-app's People

Contributors

bvellek avatar

Stargazers

 avatar

Watchers

 avatar  avatar

lumen-spot-app's Issues

Error on reload of any route other than index

Initial server side rendering of app works at index route / and navigation of app within the provided links works fine. If you try to refresh the page on the /location route then you receive this error

Invariant Violation: Could not find "store" in either the context or props of "Connect(LocationContainer)". Either wrap the root component in a <Provider>, or explicitly pass "store" as a prop to "Connect(LocationContainer)".

The app worked (and refreshed), with or without javascript enabled, from any route prior to adding redux/store.

Currently:

  • On the server the entry point the app is ./public/js/components/router.js which is rendered to a string and injected into the pug template.
  • The client entry point is ./public/js/index.js which uses a Provider from redux and a <CLIRouter /> component.
  • The store is created in ./public/js/store.js and imported into the client entry point.

the current server setup is similar to that found in this tutorial

to run app locally yarn build then yarn start and go to localhost:8081

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.