Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What did you do through this starter boilerplate? #6

Open
wellyshen opened this issue Sep 27, 2016 · 78 comments
Open

What did you do through this starter boilerplate? #6

wellyshen opened this issue Sep 27, 2016 · 78 comments
Labels

Comments

@wellyshen
Copy link
Owner

Let's make some sharing between us 👻

@wellyshen wellyshen changed the title What you do through this starter boilerplate? What did you do through this starter boilerplate? Sep 30, 2016
@dianafaye17
Copy link

I've just started as well, but this is by far the best boilerplate project I've ever used. I'm learning Redux through playing with this boilerplate. I have a question: What does it use that makes those full page white on black debug messages instead of printing them just in the console? That's awesome and I really want to know what's doing it.

@wellyshen
Copy link
Owner Author

Hi @dianafaye17 Some error message will be printed on the screen through my boilerplate however some of them are printed by 3rd party libraries, can you attachment the screenshot to me? Thanks

@dianafaye17
Copy link

I'm referring to these ones:
screen shot 2016-10-27 at 10 55 36 am

@wellyshen
Copy link
Owner Author

Hi @dianafaye17 I think the screen error message is provided through webpack-2, I just guess not do deep survey :)

@TitanKing
Copy link

Just wanted to say thank you.

We are choosing this boilerplate because;

  • Simple maintainable stack.
  • Proper Hot Reloading without hacks.
  • Up to date and none static package versions.
  • Easy to modify.
  • Un-opiniated stack
  • Standard react-reduct implementation.

We are not choosing one of the popular ones due to its large list of fragile dependencies and opiniated complex stack.

@NiluK
Copy link

NiluK commented Jun 1, 2017

This is the best isomorphic starterkit I've found on the web so far. Thanks for it. We're currently using it in a WIP project.

@jmsherry
Copy link
Contributor

jmsherry commented Jun 1, 2017

I concur with NiluK! I think it's really good! Any criticisms I make are only because I want it to get better. I am grateful to you @wellyshen for all your efforts and you'll be pleased to know that I'm taking it into production as we speak! :)

@michaeljonathanblack
Copy link

I'm looking at using this starter for developing a PWA (Progressive Web App), however I need to investigate the difficulty of integrating async routes (route component and reducer chunking) as that seems to be a critical part in reducing initial request size.

I am also concerned about how often I am running into checksum errors when fiddling around with this starter kit. I have not quite figured out how to consistently reproduce them, but they're usually solved by killing the app the restarting it.

@TriStarGod
Copy link

I'm learning to program in react and this project has all the latest "key" terms I'm looking for. Is there any opensource project I can checkout that current uses it? Hopefully its complex enough to be useful (ie. logins, db calls, etc).

@iamacup
Copy link
Contributor

iamacup commented Sep 8, 2017

@wellyshen - www.sliips.com / https://github.com/iamacup/sliips-ui

Thanks for your hard work on this template :)

@wellyshen
Copy link
Owner Author

@iamacup Great Job, it looks interested.

@jeghers
Copy link

jeghers commented Sep 9, 2017

Ported my Ham Radio Callsign Lookup app with Ract/Redux. But I am not sure how to deploy the production code into a Linux system daemon (in CentOS) so that systemd can start/stop it. Any advice? Can this starter kit be integrated with pm2?

@aagentah
Copy link

aagentah commented Sep 11, 2017

@iamacup hey that looks sweet man, did you disable 'types'? Just curious!

@iamacup
Copy link
Contributor

iamacup commented Sep 11, 2017

@danjonesdev yes and I recommend anyone else does the same unless they are building something that is going to be paid for off the bat and / or needs to be super robust from day 1.

The thing about making something that is fully testable with strong typing is that - while it sounds nice - it has two major drawbacks:

  1. Unless you know what you are building is going to be paid for / consumed - why bother? Sliips is a startup and we either fail (and thus who cared about strong typing) or we will succeed (in which case we get a bunch of cash and can pay someone to sort out test coverage later)

  2. It takes a while and makes the syntax really hard to read at a glance.

This is not true of our backend which needs to be rock solid, the frontend however... ;-)

@aagentah
Copy link

@iamacup that's actually really insightful, I may actually do the same (I'm building an article site with this boilerplate) and I've always found using Types on the front-end to be a bit excessive!

@wellyshen
Copy link
Owner Author

wellyshen commented Sep 13, 2017

It maybe a little bit annoying, but the type checking help me avoid many bug troubles ;)

@messi-yang
Copy link

messi-yang commented Oct 14, 2017

@wellyshen
You wrap action, reducer and containers together, it's cool and I like it.
But if one day you have two containers, both of them want to use same action & reducer,
cuz they might have same task to do.
So how would you deal with this problem, sharing the action or reducer.

I checked this Ducks File Structure for Redux and I tried to compare the props and cons between you and Ducks.

Also one more question, why use redux-thunk instead of redux-saga ?

Thanks.

@wellyshen
Copy link
Owner Author

wellyshen commented Oct 14, 2017

@DumDumGeniuss

Thank you for give this starter a try. If you have action / reducer shared by multiple containers you can create a common folder for them. The project structure can be adjusted for your need.

I use redux-thunk. Because it's created by the author of redux so I think it could works well with redux.

@messi-yang
Copy link

messi-yang commented Oct 15, 2017

@wellyshen
It makes sense, thanks.
I think I'm still gonna change it to "Ducks" structure.

Just be curious that why not moving '/src/types/index.js' into '/src/redux' or create a new one in '/src/redux', since 99% types of it are for redux.

Thanks

FYI, I really really like this project, it's the most clear and readable starter-kit for react-redux-universal by far, hope you can keep maintaining this.

@wellyshen
Copy link
Owner Author

@DumDumGeniuss

I put type out of ./src/redux, because I think it more obvious. But your suggestion make sense. Just do it. Thanks man I will keep maintain it.

@deepank411
Copy link

@DumDumGeniuss we are using this boilerplate too with exactly the same issue that you are talking about. We have an adaptive design so we have separate components for mobile and desktop but the same reducers. So we divided the src into three folders - mobile, desktop and common. The mobile and desktop folder contains the components while the common folder contains the reducers and the actions along with any other logic common to both web and mobile. It seems to be handling pretty well right now. Do let me know if you need to know anything more. Would love to be of help. :)

@wellyshen
Copy link
Owner Author

@deepank411 Thank you for sharing your developing experience.

@Tuizi
Copy link

Tuizi commented Nov 26, 2017

@wellyshen Hello, in our team we plan to make a big update, the software we are building is not answering the needs of our clients anymore and we have problem with scalability. I am looking for a starter kit, the create-react-app is very great but doesn't support SSR so I am looking for alternative.

Why your starter kit?

  • Support everything we want out of the box: Redux, SSR, Flow, etc...
  • Small number of files: This is the most important point for me... I cannot believe the amount of file needed to configure React, Webpack, Babel etc... CLI solve this issues but doesn't support SSR (if we have 8 clients we have 8 times the amount of files required to configure React :()

The question I have for you @wellyshen is about the update, are actively working on this boilerplate? When there are major update like Babel 7 very soon are you planning to upgrade your boilerplate and give us clear steps to update the boilerplate files in our app?

@wellyshen
Copy link
Owner Author

wellyshen commented Nov 27, 2017

@Tuizi Thank you for give this starter a try. I maintain this repo very often. For Babel 7 I will update it and you will see what I have adjusted from my commit.

BTW, there's a SSR framework call next. Have you heard it? How do you think about it?

@aagentah
Copy link

@iamacup Hey man, just got a quick question, What service do you use to host sliips? I'm going to be wanting to push my new project live in the next few months (using this boilerplate) - and not sure what to use (eg. godaddy? etc)

@wellyshen
Copy link
Owner Author

Congrats @danjonesdev, what kind of product did you make?

@aagentah
Copy link

aagentah commented Dec 3, 2017

@wellyshen thank you, It's an article based magazine for the genre of music I'm currently producing (halftime drum & bass) - the app isn't quite ready yet but it's coming along nicely thanks to this boilerplate, this will be the first react app that I deploy and backwards engineering with this boilerplate has really helped me understand the more complex side of react.

@wellyshen
Copy link
Owner Author

@danjonesdev Sounds cool, waiting for your product. BTW, I'm going to release my iOS app which made by React-Native. I'll share it as soon as it has been deployed to App Store ;)

@wellyshen
Copy link
Owner Author

wellyshen commented Aug 6, 2018

@maiconcarraro

Cool man. I used rimraf in the past. Can you help me check if it works on windows? Thanks.

@maiconcarraro
Copy link

@wellyshen Sure, I can check if it works

@maiconcarraro
Copy link

It's working @wellyshen

before:
image

after:
image

thank you!

@wellyshen
Copy link
Owner Author

@maiconcarraro Thank you a lot 👍

@denny64
Copy link
Contributor

denny64 commented Aug 25, 2018

@wellyshen Thanks for this awesome starter kit! Will need to buy you a beer 🍺 if you ever come to Melbourne! We've used it to create DealDrop.com. Do you mind if I put a PR up to update your Real Case Study section?

(DealDrop.com is the best place to find verified coupon codes, deals, promos and offers for thousands of stores & brands you love. Never pay full price again 🤑)

@wellyshen
Copy link
Owner Author

@denny64 Wow, your product looks dope bro. Plz send me a PR. I'm glad to have it as my case study 💯 BTW, you owe me a beer 🍺lol.

@taime
Copy link

taime commented Mar 15, 2019

Could anyone please share Docker files for deploy?
Why there is no Dockerfile and docker-compose.yml in repo? We have ssr here... so it would be nice to have docker here...

@wellyshen
Copy link
Owner Author

wellyshen commented Mar 16, 2019

@taime Do you want to help?

@taime
Copy link

taime commented Mar 16, 2019

@wellyshen yeah sure,
I’m pretty good at docker, but I don’t know the NodeJs at all... (actually I’m the python developer)
Do somebody have any files I could start from trying to make it ?

@wellyshen
Copy link
Owner Author

@taime I think I can create a docker branch for you guys. Give me time to study it ;)

@wellyshen
Copy link
Owner Author

@taime Here you are.

@taime
Copy link

taime commented Mar 19, 2019

@wellyshen thanks, I will try to make it work & share the results

@wellyshen
Copy link
Owner Author

@taime Cool man

@hienhuynhtm
Copy link

I tried a lot of universal starter kits, but I love this starter kit, looks clean & simple.

@rambudha
Copy link

I'm getting window is not defined error while executing the project even after the extension on my chorme. what might be the issue?

@wellyshen
Copy link
Owner Author

@rambudha window object and it's related APIs only can be accessed in client-side, plz make sure you didn't use it directly in server-side like below:

if (typeof window !== 'undefined') {
  // Use window related APIs
}

@sunils07
Copy link

@wellyshen Thank you for simple and best boilerplate I have ever seen. Going to use it in to production.

@wellyshen
Copy link
Owner Author

@sunildandwate Nice! Keep going bro.

@sunils07
Copy link

sunils07 commented Aug 28, 2020

HI @wellykkstream I have tarted using it going good but I wants to add child routes and render then in admin page.
I have write trial code but it's not working could you please help in that.
Below code I have written.

import React, { memo } from "react";
import { Helmet } from "react-helmet";
import { Link } from "react-router-dom";
import { renderRoutes } from "react-router-config";

import styles from "./styles.module.scss";

type Props = {
history: Record<string, any>;
location: Record<string, any>;
match: Record<string, any>;
route: Record<string, any>;
staticContext: Record<string, any>;
};

const Admin = ({
history,
location,
match,
route,
staticContext,
}: Props): JSX.Element => {
console.log(route.routes);
return (



Admin


Child route link
{renderRoutes(route.routes)}

);
};

export default memo(Admin);

@wellyshen
Copy link
Owner Author

@sunildandwate How about the setup of your route config (related docs)? Maybe you can give me a minimal reproduced repo, I need more context for debugging...

@mikejdegroot
Copy link

@wellyshen we used the boiler plate to make the production music site https://www.bammusic.com :) thank you

@wellyshen
Copy link
Owner Author

@mikejdegroot Wow! I love the music website, super cool, well done bro! Could you mind to list the website on the real case study section?

@mikejdegroot
Copy link

mikejdegroot commented Oct 12, 2020

@mikejdegroot Wow! I love the music website, super cool, well done bro! Could you mind to list the website on the real case study section?

Thanks very much! it's been a long road, I used your boilerplate to learn react from the ground up whilst developing this. Really appreciate all your hard work on it! I'd be honoured to put it on the case study section

@wellyshen
Copy link
Owner Author

@mikejdegroot
I have added the BAM Music to the real case study section. It's great to help you via this starter kit. Your learning story is the biggest reward for me to contribute OSS. Great work again! 💯

@ashivliving
Copy link

ashivliving commented Jan 18, 2021

Used this boilerplate modified it using Redux observable and created spinny . Thank you for such an amazing isomorphic boilerplate! Kudos!!

@wellyshen
Copy link
Owner Author

wellyshen commented Jan 19, 2021

@ashivliving Awesome man, the website so professional. May I add it to the Real Case Study section?

@ashivliving
Copy link

@wellyshen yeah sure! :)

@wellyshen wellyshen pinned this issue Feb 16, 2021
@wellyshen wellyshen unpinned this issue May 9, 2022
@wellyshen wellyshen pinned this issue May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests