All Projects → EQuimper → Thinkful Workshop React Redux Node Mongodb Webpack2

EQuimper / Thinkful Workshop React Redux Node Mongodb Webpack2

Programming Languages

javascript
184084 projects - #8 most used programming language
es6
455 projects
flowtype
47 projects
es7
32 projects

Projects that are alternatives of or similar to Thinkful Workshop React Redux Node Mongodb Webpack2

Iceberg
Front-End Boilerplate built with React + Babel + Webpack + SASS
Stars: ✭ 144 (+1100%)
Mutual labels:  webpack, webpack2, eslint, boilerplate, jest
Pwa
An opinionated progressive web app boilerplate
Stars: ✭ 353 (+2841.67%)
Mutual labels:  webpack, eslint, boilerplate, jest, pwa
React Bolt
⚡ The most simple & robust boilerplate for your React projects.
Stars: ✭ 298 (+2383.33%)
Mutual labels:  webpack, eslint, boilerplate, jest
Rockpack
Rockpack is a simple solution for creating React Application with Server Side Rendering, bundling, linting, testing within 5 minutes
Stars: ✭ 265 (+2108.33%)
Mutual labels:  webpack, eslint, boilerplate, jest
Electron React Boilerplate
A Foundation for Scalable Cross-Platform Apps
Stars: ✭ 18,727 (+155958.33%)
Mutual labels:  webpack, eslint, boilerplate, jest
Express React Boilerplate
🚀🚀🚀 This is a tool that helps programmers create Express & React projects easily base on react-cool-starter.
Stars: ✭ 32 (+166.67%)
Mutual labels:  webpack, eslint, boilerplate, jest
Starter React Flux
Generate your React PWA project with TypeScript or JavaScript
Stars: ✭ 65 (+441.67%)
Mutual labels:  webpack, eslint, jest, pwa
React Pages Boilerplate
Deliver react + react-router application to gh-pages
Stars: ✭ 134 (+1016.67%)
Mutual labels:  webpack, eslint, boilerplate, jest
Js Stack Boilerplate
Final boilerplate code of the JavaScript Stack from Scratch tutorial –
Stars: ✭ 145 (+1108.33%)
Mutual labels:  webpack, eslint, boilerplate, jest
Express Webpack React Redux Typescript Boilerplate
🎉 A full-stack boilerplate that using express with webpack, react and typescirpt!
Stars: ✭ 156 (+1200%)
Mutual labels:  webpack, eslint, jest, react-redux
Simple React App
Simple base app using react, react-router v4, hot-reload & sass.
Stars: ✭ 263 (+2091.67%)
Mutual labels:  eslint, boilerplate, jest
isomorphic-react-redux-saga-ssr
Isomorphic, React, Redux, Saga, Server Side rendering, Hot Module Reloading, Ducks, Code Splitting
Stars: ✭ 19 (+58.33%)
Mutual labels:  eslint, react-redux, webpack2
React-Redux-Enterprise
A React-Redux boilerplate for enterprise/large scaled web applications
Stars: ✭ 77 (+541.67%)
Mutual labels:  eslint, jest, react-redux
React
Extremely simple boilerplate, easiest you can find, for React application including all the necessary tools: Flow | React 16 | redux | babel 6 | webpack 3 | css-modules | jest | enzyme | express + optional: sass/scss
Stars: ✭ 244 (+1933.33%)
Mutual labels:  webpack, boilerplate, jest
Threejs Webpack Es6 Boilerplate
A basic boilerplate for a Three.js project compiled with Webpack and transpiled via Babel to enable using ES6 syntax.
Stars: ✭ 267 (+2125%)
Mutual labels:  webpack, eslint, boilerplate
React Starter Kit
React, Redux, Webpack, Material UI, Boostrap 4, Code Splitting, HMR
Stars: ✭ 229 (+1808.33%)
Mutual labels:  webpack, eslint, boilerplate
React Native Navigation Redux Starter Kit
React Native Navigation(v2) Starter Kit with Redux, Saga, ESLint, Babel, Jest and Facebook SDK 😎
Stars: ✭ 271 (+2158.33%)
Mutual labels:  eslint, boilerplate, jest
React Redux Boilerplate
Awesome React Redux Workflow Boilerplate with Webpack 4
Stars: ✭ 307 (+2458.33%)
Mutual labels:  webpack, boilerplate, jest
React Typescript Web Extension Starter
🖥 A Web Extension starter kit built with React, TypeScript, SCSS, Storybook, Jest, EsLint, Prettier, Webpack and Bootstrap. Supports Google Chrome + Mozilla Firefox + Brave Browser 🔥
Stars: ✭ 510 (+4150%)
Mutual labels:  webpack, eslint, jest
Preact Starter
Webpack3 boilerplate for building SPA / PWA / offline front-end apps with Preact
Stars: ✭ 384 (+3100%)
Mutual labels:  webpack, boilerplate, pwa

Stack

  • React
  • Redux
  • MongoDB
  • Node.JS
  • Webpack2
  • FlowTypes
  • Styled-Component
  • Service-Worker
  • App Caching

PWA TEST

The test link https://googlechrome.github.io/lighthouse/viewer/?gist=66a00c9974e7b3bb4ba1fed1cf0c07cf

Theme Color on Chrome for Android

Code splitting with React-Router

const componentRoutes = {
  component: App,
  path: '/',
  childRoutes: [
    {
      path: '/posts',
      async getComponent(location: string, cb: Function) {
        try {
          const module = await import('./modules/posts/Posts');
          cb(null, module.default);
        } catch (e) {
          errorLoading(e);
        }
      }
    },
    {
      path: '/posts/:id',
      async getComponent(location: string, cb: Function) {
        try {
          const module = await import('./modules/posts/SinglePost');
          cb(null, module.default);
        } catch (e) {
          errorLoading(e);
        }
      }
    }
  ]
};

Service Worker

if (process.env.NODE_ENV === 'production') {
  (() => {
    if ('serviceWorker' in navigator) {
      navigator.serviceWorker.register('/service-worker.js');
    }
  })();
  require('offline-plugin/runtime').install();
}

Styled-Component

import styled from 'styled-components';

const Card = styled.div`
  height: 400px;
  width: 300px;
  background-color: #fff;
  cursor: pointer;
`;

export default Card;

FlowTypes

/** @flow */
import type { Post } from './Data';

// POSTS
type FetchPostAction = {
  type: 'FETCH_SINGLE_POST',
  post: Post
}

type FetchAllPostsAction = {
  type: 'FETCH_ALL_POSTS',
  posts: Array<Post>
}

type FetchSinglePostErrorAction = {
  type: 'FETCH_SINGLE_POST_ERROR'
}

type SelectPostAction = {
  type: 'SELECTED_POST',
  id: string
}

export type Action =
  | FetchPostAction
  | FetchAllPostsAction
  | FetchSinglePostErrorAction
  | SelectPostAction

https://thinkful-workshop-webpack2-node-react.now.sh/

Want to play with ?

  1. Clone the repos
  2. npm i or yarn
  3. npm run dev:s or yarn dev:s for start the server
  4. npm run dev:c or yarn dev:c for start the client
  5. localhost:9000 gonna open in your browser by webpack

FlowTypes

When install new packages just run flow-typed install

Deploy

For deploy I'm using Now from Zeit Who provided free hosting with HTTP2. I'm using a variables for the mongodb hosting. For set yours just

now secret add mongodb <urlinkhere>

Inside the packages.json I have alias this is for change the name from now.

Just run yarn deploy or npm run deploy

TODO

  • [x] Change webpack code splitting System.import for import()
  • [x] Add service worker
  • [x] Add offline caching
  • [ ] Get smaller bundle
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].