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

Example project #13

Open
geelen opened this issue Aug 10, 2015 · 14 comments
Open

Example project #13

geelen opened this issue Aug 10, 2015 · 14 comments
Milestone

Comments

@geelen
Copy link
Member

geelen commented Aug 10, 2015

Much in the same spirit as the browserify, jspm and webpack demos, I'd love to see a simple project using css-modules-require-hook to load CSS and render templates with it on the server side.

Is that something you could take on, @sullenor?

@geelen
Copy link
Member Author

geelen commented Aug 10, 2015

I'm thinking something simple like express, but honestly whatever you'd like to use.

@mightyaleksey
Copy link
Member

Sure

I started one earlier. I wanted to try react + redux, so I made a project-stub with a simple demo of the popular game. It uses express on the server side and still lacks css-modules (I will update it soon :)).
I'm not sure if it will be a good example. It can be a bit difficult for the beginners.

See the link below:
https://github.com/sullenor/skeleton

@mightyaleksey
Copy link
Member

@geelen Finally, I managed to make a simple project. In reference to the popular tradition I decided to make a todoApp :)
Figuring out how to use the new redux-react package took some time from me. Anyways, check it out!

https://github.com/sullenor/todos

@geelen
Copy link
Member Author

geelen commented Aug 26, 2015

That's great! I'm not quite clear on what's different between this and a normal React/Redux app though? Maybe flesh out the README to point folks at the important points?

@mightyaleksey
Copy link
Member

Yeah, my bad. I guess I was obsessed a little with React and Redux. May be I should make something simpler like browserify- or webpack- demos.

@geelen
Copy link
Member Author

geelen commented Aug 26, 2015

No I think what you've done is great, just maybe help some people understand how it all hangs together.

You could also do a few interesting things, like move the global body styles into an actual CSS module then reference that from the index.jade somehow? That should be possible, right?

@mightyaleksey
Copy link
Member

You could also do a few interesting things, like move the global body styles into an actual CSS module then reference that from the index.jade somehow? That should be possible, right?

I guess so :) Honestly I wasn't sure in choosing a good variant to do that.
Also I think about opportunity of making flexible way to change themes with CSS variables. Looks like adding another postcss-plugin will help here.

@mightyaleksey
Copy link
Member

Thank you for sharing your thoughts with me, I'll try to update it in next few days.

@boyswan
Copy link

boyswan commented Sep 19, 2015

A webpack demo would be great if possible, trying to figure out how to fix the path errors

@bdefore
Copy link

bdefore commented Oct 14, 2015

👍 for a webpack example. i'm looking for a way to render serverside modules that use compose and as i understand it's still unsolved, although this library could conceivably fix it

@yacodes
Copy link

yacodes commented Nov 23, 2015

Hey, guys! I've created a simple webpack + redux + css-modules-require-hook todomvc example app, please check it out https://github.com/canvaskisa/redux-css-modules-todomvc
I'd very appreciate your comments and questions, hope that example will help.

@mightyaleksey mightyaleksey added this to the 3.0.0 milestone Jan 11, 2016
@mightyaleksey
Copy link
Member

Okay, I made another demo and wrote detailed description. If you'll have questions, please, send me a note :)

@svnm
Copy link

svnm commented Feb 28, 2016

Thanks @sullenor for your awesome easy to follow demo. I made a similar one based on yours with react-router-redux and isomorphic-fetch. Great work 👍

@maxgram
Copy link

maxgram commented Dec 8, 2017

I'm using css-modules-require-hook in react-saga-universal boilerplate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants