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

Slim & stateless version of the boilerplate #156

Closed
danstn opened this issue Mar 3, 2016 · 3 comments
Closed

Slim & stateless version of the boilerplate #156

danstn opened this issue Mar 3, 2016 · 3 comments

Comments

@danstn
Copy link
Contributor

danstn commented Mar 3, 2016

Cloned the project and didn't need any of the auth/db/models things.

Any thoughts on stripping those out and maybe creating a separate branch?

i.e. Static react app with routes and an empty need maybe, with no authentication and DB. Would be more suitable in a microservices architecture land perhaps.

Happy to write up a PR removing those things (not for master obviously).

@choonkending
Copy link
Member

@dzotokan Definitely!

This has been bothering me because it took me at least 30 minutes stripping it out that day.

Static react app with routes and an empty need maybe, with no authentication and DB. Would be more suitable in a microservices architecture land perhaps.

Good thinking. Perhaps we only need to keep that branch up to date when there are webpack or config changes then.

@choonkending
Copy link
Member

I'm going to try to work on this guy. The refactoring here will mainly be in the server/ folder.

The easiest approach I can think of is to:

  • abstract connecting + authentication + model creation into a different file - so people can easily comment that out if you wish to switch databases/not use a database.

I'll have a go to see how much work this will take + whether it's a good solution

@choonkending
Copy link
Member

choonkending commented Aug 3, 2016

Closing as issue is tackled in #372

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

2 participants