Connect to SQL Server in AngularJS [closed] - sql-server

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am learning AngularJS and I want to know how to connect to SQL Server, get data from it and show it using AngularJS.
Thaks in advance.

Angular JS is a client side architecture, you can't connect a database directly. What you need is an API on server like web service, MVC, webapi etc, to which you can make calls from your Angular js app.

Angularjs is client side framework based on javascript. There is nothing to do retrieving data from SQL server. It is server side's duty.
You should implement on server side technologies such as .net or php, and give services to client side through web api, rest api etc.

Related

Is spring security really needed for developing a react js based web application? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
What are spring securities need to be implement while creating react js based web application?.
what is the current trend?Kindly reveal me if someone has really experience in this field ,especially from spring boot back end developers.
Since react-js is only a frontend web framework, it can't handle the backend services. In my opinion integrating react-js frontend with spring-boot at the backend will be a great choice for a project but it always depends on what type of application you are building.
Spring boot provides many features for security like Password Hashing, Role based Authentication, Remember-me, HTTP Authorization and many more.
The best part about these features is that they can be configured and customized based on your needs and what suits your application the best

Is the security around web api template that visual studio provides enough? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I'm building a web app using angular 2 + web api. I have created the api using web api template that vs provides. I manage to create the log in of my app, what I did was pass the user name and password using basic authentication over https and api responds with a token + some details such as token exp, username etc., I then store these details in a local storage and use it to validate if the user is authenticated. Is the security around what I did enough?
Foremost, the kind of security that your application needs depends on what kind of data you are dealing with.
FYI, basic authentication is a really old technique which was drafted in 1999.
If you have security as a necessity for your application, you could go with OAuth 2.0 or JWT/Bearer tokens or you could even use basic authentication only for the initial API requests, get the token and then proceed with the token in the following requests.

AngularJs vs Laravel. What to pick? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I am developing a web, iOS and Android app simultaneously.
I have setted up phalcon that connects to Cassandra database and it is used for an API gateway.
All requests are HTTP and nothing connects directly to Cassandra everything is filtered in Phalcon developed app.
Now, I have to consider the login behind the dashboard and the way to develop a fast and scalable user interface.
What to choose for better development and of course safety; Laravel or AngularJs?
AngularJS is a front end framework and Laravel is a backend framework, comparing them is like comparing apples to bicycles.
Seriously though:
Authentication and database access are fundamentally backend procedures. The framework used to manage the business logic around this are frameworks that run on the server itself, and typically expose a web server and API calls. PHP is one of those languages and is not run in the browser (client) or on any native mobile system (ios/android). Laravel is a framework built around server side PHP to help with these procedures.
The client is the actual browser or mobile phone that is connecting to the back end services through http requests and manages the user experience and UI. AngularJS is a front end javascript framework built for the browser.
If this is news to you, you need to learn a lot before you dig into laravel and angular. Good luck!

what is the best way to host angularjs app? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I have developed application using angularjs as front-end , spring mvc as back-end and i used node js in between them.
I hosted frontend on appache web server and backend on tomcat?
Is this right way?
I am getting CORs issues in IE browser and page response time is very slow.
Can i run both applications on tomcat?How?
Thanks In advance
Raja
You can host both on the same tomcat server (this is exactly what i'm doing).
The web pages (angularJS app) just need to be a part of your server side artifact.
if you're using spring mvc that means your angular files need to be inside your WebContent folder.
then you can set up your web.xml to direct your visitors to the angular app via a controller call or a link to your index file
for example:
<welcome-file-list>
<welcome-file>/angularapp/index.html</welcome-file>
</welcome-file-list>
hope it helps..

To use or not to use the database? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I set up a REST API (MVC Web API). My iOS (C#/XAMARIN) and Android (C#/XAMARIN) Applications access the REST API. My webpage (C#/MVC) is able to connect the API Server or the database server directly. My question is: Should I choose the API or the SQL Server for my Web application? All applications are using the same C# class library.
This picture http://imgur.com/nHyzzmB shows my setup.
It is better to use API for the web application,
because it provides JSON or text format data response and to consume API in html / cshtml page is also good and performance of your web application must increase and if you plan for responsive design for your web application that may be used in any device then it is good to have mvc web api restful web service option.

Resources