xantier / fullstack-kotlin Goto Github PK
View Code? Open in Web Editor NEWFull Stack Kotlin Course: Kotlin React Frontend, Kotlin Spring Boot 2 Backend
Full Stack Kotlin Course: Kotlin React Frontend, Kotlin Spring Boot 2 Backend
Using your Section-1-Video-1 branch to follow your course on packt, clone the repo and any attempts to build/clean/etc. do this:
10:02 $ gradlew clean
Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true -Duser.timezone=UTC
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
✘-1 ~/mydev/work/fullstack-kotlin [Section-1-Video-1|…4] ```
Google hasn't been much help on correcting this, in need of some assistance to get unblocked.
Hi,
Thanks for this course, it is very informative.
I've been working on your master branch trying to update to the most recent versions of everything. I think I'm there with Kotlin 1.2.21 and SpringBoot 2.0.0.RC1.
I've also switched to an embedded H2 database and added a 'data.sql' to my resources to load the user and role.
The problem I'm seeing is that at startup time, after the sql script runs I get an exception.
Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.packtpub.UserRepository': Could not resolve matching constructor (hint: specify index/type/name arguments for simple parameters to avoid type ambiguities)
Any hints on how to solve this since the implementation of the repository is generated by Spring?
I keep seeing errors when compiling with Kotlin 1.2.
Example, take Section 2, Video 3.
In Config.kt
beans{ bean { ViewRoutes(it.ref())} }(ctx)
This will give us an error:
Expression 'beans{ bean { ViewRoutes(it.ref())} }' of type 'BeanDefinitionDsl' cannot be invoked as a function. The function 'invoke()' is not found
Next, if we change the above method to use the "initialize" method instead of invoke to fix the compilation error like so:
beans{ bean { ViewRoutes(it.ref())} }.initialize(ctx)
We get a different compilation error
Unresolved reference: it
Its very hard to know what the fix is especially when we are going up a learning curve.
Thank you for your course and hope to know what the fixes are.
Hi Jussi, many thanks for your video course at packt, one of the beest I had so far, learnt a lot, not only about kotlin, but also gradle, springboot and module-architecture.
I am trying to adopt your layout to my own app and wonder: the files in frontend/src/main/kotlin/{react, redux} seem pretty generic. Is it still the case today that I have to manually create and maintain thos files in my kotlin/js frontend or are there libs I can just import with the same behavior?
Thanks
Jan
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.