Giter Site home page Giter Site logo

alexdevero / react-mobx-react-router-boilerplate Goto Github PK

View Code? Open in Web Editor NEW
51.0 4.0 5.0 1.63 MB

React, React-Router, MobX, MobX-Router and Webpack (heroku-ready) boilerplate with async routes.

License: MIT License

JavaScript 65.21% Handlebars 14.49% SCSS 20.29%
react react-router reactjs react-app mobx mobx-react router heroku heroku-apps heroku-ready

react-mobx-react-router-boilerplate's Introduction

🚧 This repository is no longer maintained.🚧



Dependency Status devDependency Status Releases

Built by DEVERO MIT License

React - MobX - React-Router - Webpack Boilerplate (heroku-ready)

React, MobX, React-Router and Webpack boilerplate with async routes. This boilerplate is also ready for deploying your app to Heroku.

Table of contents

Install

Clone this repo

$ git clone https://github.com/alexdevero/react-mobx-react-router-boilerplate.git

Install dependencies

yarn

or

npm install

Usage

Start project on local server (go to localhost:1337)

yarn start

or

npm start

Build project (in "dist" folder):

yarn run build

or

npm run build

Preview minified production-ready bundle (go to localhost:3000)

yarn run preview

or

npm run preview

Async component loading

Components are now loaded async with react-router-loader and the store is injected via MobX Provider.

Support this project

Development and maintenance of this project takes a lot of time. If you want to support this project and help its author, there are few ways you can do it:

  • Starring and sharing the project
  • Donate—make one-time donations via PayPal.
  • Donate—set up monthly donation via Patreon and get interesting news about what I'm doing.
  • Releases—send bitcoins or ethereum to this address: 19jHGagJWeVvuNjN3kaBoAszXd9ea9gKzp.

Thank you!

Code of Conduct

Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

License

MIT © Alex Devero.

react-mobx-react-router-boilerplate's People

Contributors

alexdevero avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

react-mobx-react-router-boilerplate's Issues

How to update?

Is it possible to add and update approach for this boilerplate?
I think it's necessary if we want get new feature after any contribution. 😉

How to load css before js.

How to load css before js. Now this version will have a css redraw process, splash screen。
I think, should add link tag in index.html header

Module build failed: Error: No PostCSS Config found in: /src/styles

Hi. I want to thank you for your code and report an issue which I faced.

For some reason project is working fine locally but not in Docker container.

FROM node:latest
RUN apt-get update && apt-get install -y apt-transport-https
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN apt-get update && apt-get install yarn
COPY src/ /src/
COPY dist/ /dist/
COPY index.hbs /
COPY package.json /
COPY .npmignore /
COPY postcss.config.js /
COPY webpack.config.js /
COPY webpack.config.production.js /
COPY yarn.lock /
WORKDIR .
RUN yarn
CMD yarn start
ERROR in /node_modules/css-loader!/node_modules/postcss-loader/lib!/node_modules/resolve-url-loader!/node_modules/sass-loader/lib/loader.js?sourceMap!/src/styles/main.scss
Module build failed: Error: No PostCSS Config found in: /src/styles
    at /node_modules/postcss-load-config/index.js:51:26
    at <anonymous>
 @ /src/styles/main.scss 2:14-226 21:1-42:3 21:224-42:2 22:19-231
 @ /src/index.js
 @ multi (webpack)-dev-server/client?http://0.0.0.0:1337 webpack/hot/dev-server react-hot-loader/patch webpack-dev-server/client?http://0.0.0.0:1337 webpack/hot/only-dev-server babel-polyfill whatwg-fetch ../src/index.js

I solved this by explicitly setting path to the postcss.config.js in webpack config files.

use: [
  { loader: 'style-loader'},
  { loader: 'css-loader', options: { sourceMap: true } },
  { loader: 'postcss-loader', options: { sourceMap: true, path: 'postcss.config.js' } },
  { loader: 'resolve-url-loader' },
  { loader: 'sass-loader', options: { sourceMap: true } }
]

Add some note and guideline about folder structure

Hi @alexdevero I think it's very useful if we have some note and guideline about folder structure in this boilerplate then we can start using this more faster.
For example then I can add my custom login process and page more faster than discover all thing myself.

Maybe some short note in README file can helpful.

Is it ready for production?

Hi @alexdevero ,
Is this repo ready for production?
I want to start new project base on this boilerplate and want to know is it update enough? (all package.json version)

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.