how to integrated activiti in angularjs - angularjs

I need to implement business process management in application development in angularjs (via REST). I searched and I found activiti, camunda and bonitaBPM.
Someone have it knowledgment about ? Which is the best?

Please go through https://www.activiti.org/userguide/#_rest_api
for built in Activiti rest apis.
You will need an Activiti installation to connect to.
how ? see this installation video https://youtu.be/Px2O4aUBEEE
Then From Angular you can make Ajax calls to These Rest API's.

Related

Which guide should I follow to build an app using: Spring Boot (REST)+React+OKTA

I was looking at this blog: Use React and Spring Boot to Build a Simple CRUD App to build a webapp (REST based) where the UI will be React, and we will use OKTA for Authentication & Authorization. The backend will be in Spring Boot suite.
While looking at that blog, I found that it uses httpSession to set attribute like this:
request.getSession().setAttribute("SPRING_SECURITY_SAVED_REQUEST", new SimpleSavedRequest(referrer));
My question is:
Do we also need to handle http session replication issues if we use multiple instances of the webapp (the server part which uses Spring Boot) ? Please let me know if this is the correct approach to go for or not.
Yes, if you're using Spring Security with oauth2Login(), you will need to replicate your session. If you're just using oauth2ResourceServer(), you do not need to replicate because it's stateless.
For session replication, I recommend using Spring Session with Redis.

Steps to connect Angular4 to a Database (Oracle)

Actually I've to connect my Angular project to a database to access some data. But I don't know how.
Should I write a REST API to do it? If yes, how can I connect my REST API to my project?
Which steps should I follow?
Thanks
The angular application will be your "front" application. To store and fetch data
from a database you'll need a "back" application that will provide URLS for your angular App to call.
A simple back can be done using Laravel and OCI 8 connector in order to query ORACLE database. The backend would be in PHP which is a common solution but might not fit your needs.
Set up your laravel project : https://laravel.com/docs/5.4
Install OCI8 module to connect to your oracle database : https://github.com/yajra/laravel-oci8
Then follow laravel's guidelines to set up URLs that will be callable by your front application in Angular4.

Authentication from Rest service and Cordova

I'm developping an hybrid application with Cordova and AngularJs witch consume services provided by a REST web service. I'm beginner with this kind of project and I look for a simple example of authentication.
I searched on the net but I cant't find a simple tutorial to follow.
can anyone healp me please ?
Are you developing the REST API youself? In that case an easy way to set up authentication is to use JSON Web Tokens (JWT). Check out http://www.jwt.io for more information. You could use the Satellizer library to handle the client side stuff, they even have example implementations for the server side.
Good luck!

Pure Angularjs Single-Sign Up with ADFS

Does anyone know is it possible to do a single sign up web application with ADFS in a "pure" angularjs enviroment? I am at the point to decide which framework for my next project. One of the main requirement is the ability to do "single sign up" with ADFS, but I don't want to "mix" angularjs with asp.net, just make thing more complicated. I would like to go pure angular without any asp.net framework, is it even possible?
I know there are a lot of questions on this topic, but it seems no one is really answering the question. Is it because it's not doable?
By the way, It is an intranet web application.
The problem is not with your ADFS server, the ADFS protocol itself, AngularJS, JavaScript or the browser.
It's with the way you tell your client-side application that the user is logged in from your server-side application.
As far as I know there is no way to do "pass-through" authentication over HTTP so you will need to have your users go through the preauthentication step.
With ASP.NET you get an access token "for free" because the ASP.NET application runs on a machine that's in the "trusted" ADFS network. Your browser on the other hand is not. The only way for ADFS to know you are who you say you are is to preauthenticate you.
I just implemented it using the Azure Active Directory for JavaScript library. After IT registered my app for me, I was up and running in 10 mins. There is an AngularJs example in the source code. https://github.com/AzureAD/azure-activedirectory-library-for-js
You should also register your development workstation so you can test locally.

What is the actual advantage of running an AngularJS web app over Node.js instead of a server like Xampp?

As stated in the title,
I don't really understand how Node.js works and above all why it's actually used to run an AngularJS application (e.g. in WebStorm IDE this is the default option when you create an AngJS project).
I've got this doubt since I could run a simple AngularJS app on an Apache web server (within Xampp) without any involvement of NodeJS.
Thank you in advance
Node.js is an application platform. It's good for running your applications on.
Apache HTTPD is a web server. It's good at serving web pages.
They're two very different things, not directly related, and not mutually exclusive.
You are correct that many apps can run anywhere, but some benefits we've seen are:
Simplicity, especially for web developer also developing the server-side code/config/deploy.
Real-time web - easier to add in things like WebSockets and Server Sent Events if you need them.

Resources