Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What type of database to use with AngularJS and JSON [closed]

Haven't been able to find any resources which explore this type of issue with Angular, so feel free to link me in the right direction if you know of anything.

I'm building an online store for mobile (it's only mobile at this stage) with Angular.

At the core of the system are products (each with a name, designer, description, colour, price, category, store location and a few others).

I'm currently storing this all in JSON files and loading that into Angular, but the more products I add the more unmanageable this is becoming.

What I'd like to do:

I'd like a database that I can send some queries to (example: "mens, shirt,

The only backend system I've had any exposure to is MySQL (and not much at that). I know enough PHP to get myself around, I'd say beginner-intermediate (I'm a front-end dev by trade).

Is this sort've thing best suited to any particular type of database? And is there any particular "playing nice" that any do with AngularJS?

like image 847
JVG Avatar asked Jun 03 '13 05:06

JVG


People also ask

Which database is used with AngularJS?

Angular is a total rewrite by the same team that created AngularJS. The MEAN stack, which includes the MongoDB database, the Express. js web application server framework, Angular (or AngularJS), and the Node.

Can AngularJS Connect to database?

AngularJS is perfect for displaying data from a Database. Just make sure the data is in JSON format.

Does Angular need database?

No , its not required , Angular Js is a java script framework , which works in front end of your application , so to use Angular Js Database is not a dependency.


1 Answers

Have you had a look at CouchDB?

Data stored in CouchDB is stored natively as JSON, so it flows nicely through to web apps since you get to communicate with the database as JSON.

CornerCouch is an AngularJS module written specifically for this purpose, although I have not played with it myself.

like image 128
itsmejodie Avatar answered Oct 25 '22 14:10

itsmejodie