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

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! ;)

Related

Static Site generator, mvc, laravel or plain includes... what to use

I am having some difficulties of finding the right tools.
Of course the main sentence is: "it depends..."
I am still building small company sites while using "includes" for nav, footer, contactform and so on,
but what would be a better approach? No CMS, just static site, since updating will not be frequent enough.
I have been looking at static site generators like 11ty which would do the job, but also I am trying to get better at php, so should I look at laravel?
There is just so much on the market, that I am a little lost. What does the community use? It would be really great to get some ideas or examples.
Thank you so much in advance and have great day!
Laravel is a PHP framework, which you could use in creating your own CMS or static site generator if you really wish to challenge yourself and get better at PHP. In other words, pick it up if you wish to develop something backend oriented and interacts with a database.
I have used Jigsaw once for static site generation, which is built with Laravel and uses Blade as a templating system and Markdown for its content formatting. Personally I think it's a good start to at least get acquainted with using Blade as a templating engine.
In my opinion, static site generation is frontend development where PHP isn't involved as much as you would like to think. If you wish to sharpen your PHP skills, try to create a CMS in something like Laravel or some other backend heavy application.

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.

RESTful app with Play Framework Java

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

Javascript coding guide with test driven development

I'm migrating from server side development (java, php) to client side - HTML, CSS, javascript.
Though I technically understand (mostly) how javascript works, I have not found a good guide to creating an application - particularly with regards to how to organise functions and objects and setting up a solid test framework for them.
I'm currently half way through the Ruby on Rails tutorial
http://ruby.railstutorial.org/
which is excellent - I now feel confident in understanding the standard structure for arranging all the code in an application, and setup good testing practices as I go.
Plus, the integration with heroku and git make for a really tangible real world example, making for a complete understanding of how to develop and deploy a rails app.
Can anyone recommend a similar kind of guide for JS/AJAX development?
One good way to write JavaScript is to do it in a modular fashion. For dependency loading, you would also need module loaders like RequireJS. As for structure, there are a lots of frameworks out there, I suggest you give BackboneJS a try. You would also want to make your JS scalable so that you won't ever have to worry about expanding. Here's more videos about it as well.
There are a lot of frameworks to choose in JS. Test them all out and create a stack which you feel comfortable playing with.
I don't think you'll find a similar tutorial as on Ruby on Rails about Javascript, because Rails is a framework and Javascript is just a language that has hundreds of different frameworks built around it. I don't know what kind of applications are you willing to develop, but Backbone.js is an MVC framework for frontend development and you could search some tutorials on it.
However, if you're just starting out with JS, you probably want to learn first on the basics of JS. Good source for that is for ex. MDN JS guide:
https://developer.mozilla.org/en/JavaScript/Guide
Then you might want to check out guide on JS design patterns for learning how to structure your code:
http://www.addyosmani.com/resources/essentialjsdesignpatterns/book/#designpatternsjavascript
Hope these will help!

Categories