All Projects → molily → universal-progressive-todos

molily / universal-progressive-todos

Licence: other
A Todo list with universal JavaScript & Progressive Enhancement

Programming Languages

javascript
184084 projects - #8 most used programming language
Sass
350 projects
SCSS
7915 projects
EJS
674 projects

Projects that are alternatives of or similar to universal-progressive-todos

Helium.js
Automating Universal React Applications
Stars: ✭ 63 (+110%)
Mutual labels:  isomorphic, universal, universal-react, universal-javascript
FlipED
A LMS built specifically for Thailand's Education 4.0 system.
Stars: ✭ 24 (-20%)
Mutual labels:  isomorphic, universal, progressive-enhancement
Razzle
✨ Create server-rendered universal JavaScript applications with no configuration
Stars: ✭ 10,547 (+35056.67%)
Mutual labels:  isomorphic, preact, universal
React.ai
It recognize your speech and trained AI Bot will respond(i.e Customer Service, Personal Assistant) using Machine Learning API (DialogFlow, apiai), Speech Recognition, GraphQL, Next.js, React, redux
Stars: ✭ 38 (+26.67%)
Mutual labels:  universal, universal-react, universal-javascript
Celestite
Beautifully reactive, server-side rendered Svelte apps w/ a Crystal backend
Stars: ✭ 185 (+516.67%)
Mutual labels:  isomorphic, universal
Minrouter
a micro middleware router for isomorphic javaScript web apps
Stars: ✭ 159 (+430%)
Mutual labels:  isomorphic, universal
React Isomorphic Starterkit
Create an isomorphic React app in less than 5 minutes
Stars: ✭ 2,326 (+7653.33%)
Mutual labels:  isomorphic, universal
Beidou
🌌 Isomorphic framework for server-rendered React apps
Stars: ✭ 2,726 (+8986.67%)
Mutual labels:  isomorphic, universal
Razzle Material Ui Styled Example
Razzle Material-UI example with Styled Components using Express with compression
Stars: ✭ 117 (+290%)
Mutual labels:  isomorphic, universal
Universal React
A universal react starter, with routing, meta, title, and data features
Stars: ✭ 247 (+723.33%)
Mutual labels:  isomorphic, universal
React Isomorphic Video Game Search
An Isomorphic application demo powered by React, reflux, react-router-component, express, superagent and the Giant Bomb API.
Stars: ✭ 253 (+743.33%)
Mutual labels:  isomorphic, universal
React Redux Styled Hot Universal
react boilerplate used best practices and focus on performance
Stars: ✭ 147 (+390%)
Mutual labels:  isomorphic, universal
Isomorphic Lab
Isomorphic React experimentation
Stars: ✭ 144 (+380%)
Mutual labels:  isomorphic, universal
server
Serve one or more react apps! - Custom routes, HotReloading, Authenticated Apps/routes, Relay, Webpack..
Stars: ✭ 20 (-33.33%)
Mutual labels:  isomorphic, universal
Universal React Tutorial
📓 How to build universal web apps with React.
Stars: ✭ 136 (+353.33%)
Mutual labels:  isomorphic, universal
Arc
React starter kit based on Atomic Design
Stars: ✭ 2,780 (+9166.67%)
Mutual labels:  isomorphic, universal
universal-react-relay-starter-kit
A starter kit for React in combination with Relay including a GraphQL server, server side rendering, code splitting, i18n, SEO.
Stars: ✭ 14 (-53.33%)
Mutual labels:  isomorphic, universal
React Redux Boilerplate
It is a boilerplate of React-Redux as the infrastructure, which helps to setup a Web APP quickly
Stars: ✭ 113 (+276.67%)
Mutual labels:  isomorphic, universal
grand central
State-management and action-dispatching for Ruby apps
Stars: ✭ 20 (-33.33%)
Mutual labels:  isomorphic, universal
boldr
React based CMF / blogging engine using Redux, Postgres, Node, and more...
Stars: ✭ 78 (+160%)
Mutual labels:  isomorphic, universal-javascript

Todo list with universal JavaScript & Progressive Enhancement

This example app renders HTML on the server and on the client using “universal” JavaScript. It uses Node.js, React, React-Router and Redux for the rendering and the UI logic. For storing the todos on the server, it uses the key-value database LevelDB.

There’s also a Preact version available in the preact branch if you prefer that over React.

There are several good example apps and boilerplates for universal React/Preact apps. This one borrows ideas from Milo Mordaunt’s great tutorial: Handcrafting an Isomorphic Redux Application (With Love) and the corresponding repository.

What’s special about this example is that it’s made with Progressive Enhancement in mind. Instead of just rendering the first page on the server to improve the JavaScript application’s startup time, this example works entirely when JavaScript is disabled or fails for any reason. See these articles for background information:

When it comes to data fetching, this example follows Milo Mordaunt’s approach. It declares the data dependencies in the React/Preact component. The static component property needs lists Redux action creators.

These action creators directly talk to the database when called on the server, or make a request to the server when called on the client. It gets simpler if you use a separate HTTP REST API server that speaks JSON. Then you can use a universal HTTP library like axios or fetch to talk with the API server. In this simple example though, everything is mashed up on purpose.

Development server

Start the development server with:

$ npm install
$ npm start

Then open http://localhost:3333 in your browser.

Production server

Make a client and server production build:

$ npm run build

Start the server with:

$ npm run server:production

Then open http://localhost:3333 in your browser.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].