Commit graph

38 commits

Author SHA1 Message Date
Boyan Tabakov
e56583011e Move basic auth after SSL redirection 2017-05-17 14:54:10 +03:00
Vesa Luusua
67f8bd92e4 format with prettier 2017-05-16 23:00:36 +02:00
Mikko Koski
b796157c82 Fix message "Listening to port 4000 in undefined mode" 2017-05-15 16:51:39 +03:00
Mikko Koski
ec9d28ab07 Add ENFORCE_SSL config. Redirect to HTTPS if true. 2017-05-15 16:51:39 +03:00
Vesa Luusua
c341e97ef0 SearchPage handles next page and prev page clicks 2017-03-29 16:56:40 +03:00
Kimmo Puputti
3f20100e40 Fix preloadedState serialisation
- Use reviver and replacer from the SDK to properly encode/decode the
   SDK types
2017-03-28 15:22:59 +03:00
Kimmo Puputti
5cb1219a97 Read API config from env in server 2017-03-23 12:53:36 +02:00
Kimmo Puputti
f4ff5908d3 Fix search page server rendering 2017-03-22 15:02:29 +02:00
Mikko Koski
c50dec0eb9 Implement sdkLoader to either require sdk package or use bundled sdk 2017-03-16 16:39:35 +02:00
Kimmo Puputti
e56034348d Remove fake SDK files 2017-03-15 16:00:55 +02:00
Kimmo Puputti
5a38f6c280 Call loadData of matched routes in the server 2017-03-15 15:51:40 +02:00
Kimmo Puputti
6f713ab281 Create SDK instance for each request 2017-03-15 15:51:40 +02:00
Kimmo Puputti
3ff726b02d Reorganise server code 2017-03-15 12:23:48 +02:00
Kimmo Puputti
00bfe79237 Remove old redux-saga data loading 2017-03-15 10:45:28 +02:00
Kimmo Puputti
ad3ceca9e8 Format with updated Prettier 0.19 2017-02-27 10:54:49 +02:00
Kimmo Puputti
48d6b3a3bd Add support for forbidden status in server rendering 2017-02-16 14:04:10 +02:00
Kimmo Puputti
2863f9dbef Fix notfound status code in server rendering 2017-02-16 14:03:23 +02:00
Kimmo Puputti
59748e39b9 Rename exactly to exact as in react-router Route props 2017-02-15 13:48:05 +02:00
Kimmo Puputti
3f4bc073d4 Fix routers and server context 2017-02-14 10:48:10 +02:00
Kimmo Puputti
be2fcdf793 Import from react-router-dom instead of react-router 2017-02-14 09:43:37 +02:00
Vesa Luusua
bc2baaf3b5 Refactoring to improve readability, compatibility with saga and comments 2017-02-07 13:13:08 +02:00
Vesa Luusua
b937f3fd57 Refactor saga code in ducks files and add sdk as parameter. 2017-02-06 12:40:47 +02:00
Vesa Luusua
2a9c9e103b Fetch data with saga (both server and client) 2017-02-06 12:40:42 +02:00
Vesa Luusua
3c597ea2cf Template function didn't understood stuff inside script tags. 2017-02-06 12:32:59 +02:00
Vesa Luusua
71ab7c33e0 Call component.loadData on server side (and client) 2017-02-06 12:32:59 +02:00
Vesa Luusua
13e03a3c92 Refactoring code and improving documentation 2017-01-20 15:07:15 +02:00
Vesa Luusua
1fa70eadf2 Pass preloaded state to client side. 2017-01-20 15:02:54 +02:00
Kimmo Puputti
f6ca7da23c Format code with Prettier 2017-01-18 13:54:52 +02:00
Kimmo Puputti
9fb2495af8 Add basic auth for production mode 2017-01-16 15:15:47 +02:00
Kimmo Puputti
70bab66511 Fix port -> PORT env var 2017-01-16 15:15:47 +02:00
Kimmo Puputti
f97c1f1498 Add gzip compression middleware to the express server 2017-01-16 15:15:47 +02:00
Kimmo Puputti
7c2ceaf41f Print URL to open dev server in a browser 2017-01-13 14:44:19 +02:00
Kimmo Puputti
ef66a19e20 Use the helmet security middleware 2017-01-13 13:41:04 +02:00
Kimmo Puputti
0fc9222976 Add missing semicolon 2017-01-13 13:41:04 +02:00
Kimmo Puputti
ba3418c661 Add documentation 2017-01-09 11:54:38 +02:00
Kimmo Puputti
9f5f24bfee Change template syntax to work with dev mode as well 2017-01-05 20:56:43 +02:00
Kimmo Puputti
83f80b6950 Implement page title handling with SSR support using react-helmet 2017-01-05 17:01:14 +02:00
Kimmo Puputti
6f93d85a7d Render application in the server 2017-01-05 14:22:40 +02:00