RESTful app with Play Framework Java - javascript

I would like to create RESTful Java app using Play Framework and Akka. I have already done basic Play tutorial, but I want to create separated front end and back end. How can I start? What are good principles of making app with Akka? Have you got any advices, books, tutorials? I have some knowledge in FE technologies, such as: AngularJS, Javascript, Bootstrap etc.
Currently I have troubles with authentication...

There are a number of book-references on the Play website. If you are looking for a general introduction to the play framework (including some akka), this should help you get started: Reactive Web Applications
As far as authentication is concerned, that topic has been discussed before: Authentication in Play 2.3.x

Related

How to create a web portal using angularJS

Im fresh out of the academy and have been given my first project. I need to create a web portal that can interface with RESTFUL services. Can anyone advise me on where and how to start?
After I create the basic html and css Web page I have to integrate the CRUD module. Should I look at creating a single page application?
Any advise is appreciated, thanks.
As Matus Dubrava as mentioned, this is off-topic and a very broad question. But I can help you with some guideline -
You will be having a database (mysql, postgresql, mongo etc.), an API server (can be built with Java Spring Boot, Python Django, NodeJS, PHP etc.) and lastly a frontend application (can be built with angularjs, reactjs etc.).
First, you have to sort out what you already know among these and then plan ahead what other modules you need to learn. After deciding what technologies you will use, you can google the tutorials and sample code for that technology. If I can help more ask me out.
Hope this helps.

AngularJS and Java communication

I've just started learning about software components but I'm completely new to this subject and I was asked to make an AngularJS application and at the same time manage the data with a hibernate application in Java, so I'd like to know What's the best way to connect my AngularJS app to my hibernate app, I may say I'm kind of lost in the subject.
I would suggest to go with Spring framework. For build/dependencies, use maven. AngularJS/Html/JS as front end tech, hibernate+JPA/Java/Spring as server side tech. Use of JPA makes things pretty simple. Initially it may look a bit puzzling for new folks, but slowly it all looks such a great things to work on.

Is it possible to create a web chat application in plain Laravel

I just started studying and learning about Laravel Framework. My programming originated from Java Desktop application programming and I have not tried any web framework in the past.
I've little knowledge with Javascript, some PHP, HTML and CSS.
I would like to know if it's possible and advisable to create a chat application within a social network website I'm planning to create for school semester using Laravel.
If it's not possible, what web programming language for a total web newbie like me can use?
I thought it would be best for me play around and learn Javascript because the coding style is a bit similar to Java.
I would like to create something similar with facebook's chat application.
I'd appreciate any suggestion and help.
Thank you.
For such application you can use socket.io, based on node.js. The website offers a full tutorial to build a webchat.
You could do that in PHP using websockets, but it would be more complicated.
My advice is to keep Laravel for the non-interactive parts of your application and use node.js where you need real-time features.
It's more than possible.
Actually with the new 5.3 release, Laravel provides realtime app from scratch: https://laravel.com/docs/5.3/broadcasting
You need a third party service like pusher, but it's pretty easy to implement.
Go ahead and to dive in into the laravel worl, i can recommand https://laracasts.com/
Have fun! ;)

NodeJS with Java RESTful backend?

I require some advice in terms of choice of language, I hope that I'm allowed to ask this question here.
To provide some framework information:
As from next week, I'll be following a Java course to get my graduate degree in programming.
For this graduate, they mention that we'll need to develop a webapp in Java.
At the same time, coincidence wants that we are currently developing a webapp that allows users to search popular activities (events) and follow hashtags to render a specific activity feed.
For the front end we currently use some client libraries (Marionette, Backbone, Underscore, Requirejs).
For the server front end (router, rendering server pages), we currently use nodejs.
The question is if it would be a good choice to use Java to build the REST service (to serve both the server and client front ends). The webapp includes a social network, organisers can create their own profile, users can bookmark all sorts of things, ... well, there will be pretty database intensive actions (we'll be using a relatively complex relational model with MySQL).
We might still be using Node to handle push notifications with web sockets but we haven't really discussed this yet.
Since we'll get time at school to work on our project in group, I'd have plenty of time to build the backend REST api with Java which seems like a huge opportunity for me in terms of time. I'm just wondering if there would be any real tradeoffs to do it with Java for this purpose.
Thanks.
I think this would be a huge opportunity to build a REST backend in Java.
Take a look at Spring for a fast and effective way to server HTML
Also you could look at Spring Boot for serving REST APIs. If you follow the tutorials you'll be up an running in minutes.
Good luck

Introduction to Local Storage Adapters

I am quite a novice when it comes to web application development. The projects that I have done thus far have purely been Client Side and Jquery powered.
Recently I made a discovery that Javascript has an MVC framework (http://backbonejs.org/)
This really excites me as about 90% of my experience to date has been with Javascript, so the possibility of using an MVC framework within a familiar coding language is actually quite awesome.
After some more reading and probing I discovered a local storage adapter for backbone:
http://documentcloud.github.com/backbone/docs/backbone-localstorage.html
Basically if I have understood this correctly - it will store and retrieve data in cookies
So the above framework (backbone) and addin (local storage) will allow web applications to operate in a "server-less" environment.
Before I get crucified by any techies - I do understand that this is a very generous, generic and simplified statement - but I am just trying to find out a few things at this point:
Is my understanding of the framework correct?
Has anyone had any development experience with the above?
Where can I get novice level tutorials on developing MVC Web applications that use Backbone.js
Looking forward to the discussion and your answers
Is my understanding of the framework correct?
First off there are several "mvc" like frameworks for Javascript besides for Backbone.js (assuming you consider backbone.js an mvc framework, take at look at this SO question as well as the official documentation) for example Ember.js, Knockout.js, JavascriptMVC. That said local Storage is a feature of HTML5 and isn't specific to backbone.js (so the browser would need to support it, here's a SO question with some more info on localStorage), what the backbone.js localStorage adapter does is saves the backbone.js data to localStorage instead of the server.
Has anyone had any development experience with the above?
Yes (you can take a look at the questions tagged with backbone.js here on SO for starters...).
Where can I get novice level tutorials on developing MVC Web
applications that use Backbone.js
Have a look at this site for some backbone.js tutorials.

Categories