Comments (11)
Well I'm afraid I don't know the other frameworks mentioned, so I'll just start slowly chipping away at a scala-js-react app in a fork (probably next week) and let you know here when there is something worth looking at.
You're right that there are several possible options for front and back end frameworks/patterns/languages. If you were soliciting votes on the approaches (which you are aren't 😄 ) then mine would go to the "1 full stack application per repo" option.
You could encode all of the variations as sub-projects in this repo but for me the core value of something like this is as a packaged example of how I might write a production app using functional libraries. Including sub-projects would add noise to the project folder structure and build.sbt
which could be unhelpful to somebody with that goal.
At the end of the day, someone can always build a fork using Free, Finch and Vue (for example). If they did you could even create a Scala Pet Store github org and encourage those contributors to "donate" the fork to the org for improved discoverability. You could imagine ending up with a matrix on each Readme which links to the fork for each combination.
from scala-pet-store.
@pauljamescleary Out of interest - as this is intended to be an example of a production scala application, why not go for a scala.js front end e.g. using scala-js-react and diode? I'd be happy to contribute to such an effort.
from scala-pet-store.
@hugofirth Definitely would welcome a scala-js-react / diode front end.
I was thinking about taking the existing code and moving it to a sub-module, like "typelevel-tagless-final" and then have the front end to be a separate sub-module. This way, we could use the same front end with different backends.
I was thinking about creating a Free backend, may want to do eff, who knows what else.
Also, sorry for not responding earlier :(
from scala-pet-store.
Just dropping this in: https://github.com/OutWatch/outwatch
I think it is another interesting technology to look into.
👍 regarding the module split
from scala-pet-store.
To make it a little bit more complex to decide which framework to use I'll also drop https://github.com/outr/youi here :-)
Thank you for this project, @pauljamescleary !
from scala-pet-store.
I think there are opportunities for several front ends. I haven't quite figured out if we should have a multi-module monolithic repo or perhaps an org with several repos of different flavors. This is small, so for the time being a multi-module project seems like a logical next step.
From a reference guide in scala standpoint, I think ScalaJS makes the most sense. The other viable alternative is a straight up javascript front end built in something like Vue.js.
from scala-pet-store.
Sounds good
from scala-pet-store.
Another good lib in the same style as scala-js-react is binding.scala : https://github.com/ThoughtWorksInc/Binding.scala
I think the syntax is a bit easier to read than scala-js-react and it's a pure scala.js framework.
from scala-pet-store.
Thanks for the tip @loicdescotte . I will be sure to check it out :)
from scala-pet-store.
Might make sense to get the authentication in before this. Would be sweet to have an SPA with JWT for authentication against the user store all fully functional :)
from scala-pet-store.
We have some authentication bits in, at least the login bits. TSec is still developing, and I haven't been back to make the JWT pieces work yet.
from scala-pet-store.
Related Issues (20)
- Use `requests.request(params=xxx)` for python client
- Add scala-steward to project HOT 6
- Switch to circe-config HOT 5
- Travis is not connected HOT 4
- Dockerize sbt build
- Add github pages deployment to travis HOT 2
- add Scala 2.13 crossbuild HOT 3
- Application gets blocked on db connection acquisition if more than 10 concurrent clients connect HOT 3
- Implement Tracing and Stats
- question: Why Resource in Server.scala? HOT 2
- n HOT 3
- Having problem with sbt compile HOT 3
- Thanks note and request for an note HOT 1
- Change Python version in README HOT 1
- Scalacheck spots error in PetEndpoints HOT 1
- Pet and Order status can get out of sync
- Have you considered the library freestyle?
- SQLPagination drops SQL parameters HOT 1
- Scala 2.13.6 Unused Parameter Value for Higher Kinded Type HOT 1
- Remove monad transformer return types from algebras HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scala-pet-store.