I am rewriting my JavaScript app using Yeoman and AngularJS. So far, I used simple webpy framework and everything was fine - I used ajax calls to get data from server, server was connected to sqlite database and everything worked.
Now, I'm deeply confused and have no idea how to connect webapp scaffolded by yeoman and angular with my sqlite db. I know that yeoman is built on node.js but I'm not sure what should I do to get working server side.
I know that this question is more about architecture but I was not able find on the internet how to connect this two technologies: yeoman (with angular) and sqlite database.
What should I use?
Angular is a front-end framework. You must have a back-end server to communicate to your database. You talk to it with Angular via a RESTful service using $resource or $http or some 3rd party library like RestAngular.
Related
I am a Microsoft developer. Making an ASP.NET application with authentication to Azure AD is very easy. The traditional multi page application with Vue (as an example) can be created within two minutes (by using the Authentication wizard in Visual Studio). However watching some Angular and NPM videos I liked the CLI/npm approach. So I decided to build my next project using ADAL.js, ASP.NET Core API and Angular 6 (deploy to Azure web app). But I haven't been able to succeed, and have only been met by complexity and issues.
Is the combo of these three technologies just a bad mix, Visual Studio not suited for SPA, or have I just gotten a bad start? Any suggestions on a good setup? I am considering to split the API and front end in two apps, so I can use clean Angular without having to worry about who is building TypeScript (VS or Node) etc. But then I need two web apps, and have to worry about CORS. Any suggestions here, what is a good setup to get started?
I have followed a lot of articles like:
http://www.talkingdotnet.com/how-to-create-an-angular-6-app-with-visual-studio-2017/
https://www.npmjs.com/package/microsoft-adal-angular6
But all of them had issues.
Refer to this Microsoft published GitHub sample. This sample demonstrates the use of ADAL for JavaScript for securing an AngularJS based single page app, implemented with an ASP.NET Web API backend, that calls another ASP.NET Web API using CORS.
Call an Azure AD protected Web API in an AngularJS Single Page App
i wanted to make an app for my college with apache cordova in visual studio 2015. For this i need my app to connect with database and make a server. PHP is not going to run on this software. i want coding for my app, if anybody could help please. Thankyou.
You will create web service or rest service on a server to perform your database actions and return json results. Then the Cordova app will call these services, usually using AJAX.
Connecting project in Monaca Mobile restful api backend with mysql database
I have a backend developed with php and mysql with various restful apis consultation, inclusion, exclusion ready. I need to connect the mobile project in Monaca this backend by apis from our server.
I'm trying different codes using angular, but nothing has certain data. If I can not make this connection will give up working with monaca.
Thank you!
Could not find a working rest example. This example connects to remote server and pulls data from a remote server. Changing URL should take care of the rest.
https://github.com/argelius/onsen-weather-sample
I have a angular app, just a angular app so no nodejs or other backend is involved. I have a separate backend setup with an API. My angular app communicates to the backend with the API.
Now when I want to put my angular app online, how do I do this? If I just put the html files online I get all kinds of errors (I already have a separate question for this matter, which is unresolved). Deploying to heroku doesn't work because it isn't a nodejs app.
So how is this accomplished?
You can use an apache server or nginx to serve static content on a remote server. Personnaly I use Nginx, it doesn't require a lot of configuration (almost no configuration) to works.
I'm new to AngularJS(it's great!) and I suddenly realized that I don't need server side MVC framework when using AngularJS routing... Am I right? I mean off course I need some sort of Restful Web API but the use of MVC is redundant no?