Portable MongoDB? [closed] - javascript

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I have been wondering if it is possible to have a portable MongoDB instance.
My goal is making a full Javascript + HTML5 application, and store data in a /data folder, and each collection would be a .json file, but hardcoding a literal database would be certainly reinventing the wheel (or steel).
I googled some Javascript-made JSON databases as a reference, but my eyes shine on BSON data formats.
Is that possible?
Or better, am I missing another mind-breaking technology that would fit my needs?
Thanks!

Disclaimer: I just came across this and haven't tried it yet.
MongloDB (https://github.com/Monglo/MongloDB) looks interesting. From my quick look it appears to be a MongoDB look alike interface that makes it easy to back with local storage or a cache and AJAX to a server side store. But as I say I have not tried it yet. The joys of random github finds.

I created NeDB - a pure Javascript database implementing the MongoDB API. It can be used as a Node.js module and in the browser and supports persistence.
It also supports indexes which make it much faster than databases who don't (e.g. TaffyDB and it seems to be the case for MongloDB as well)

Related

Please suggest a backend based on jQuery [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I know jQuery & Java. I want to build a backend for my android app. I don't want to learn Javascript right now. Can I make backend via Express.js with only jQuery knowledge? Or is there any backend service like Express.js based totally on jQuery?
JQuery is browser based. If you are dealing with JSON objects then it would be easy to use Express.js which is a library commonly used with Node.js. You cannot use JQuery to code backend.
You cannot use jQuery for backend development and you can't use it with express.js, it's limited to frontend.
Generally if you already know jQuery, plain javascript will be easy to pick up. And you generally don't need a very high level of javascript knowledge to get started with express.js atleast.
I'd suggest an hour of codecademy or something of the like to get to grips with the syntax.

Easiest way to go about writing basic data back to a server database [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I am totally new to writing back data to a server, so this question may be phrased slightly wrongly.
I am building a website that will have multiple fields for users to input values. I am planning on using JS (probably with Jquery) to pass these values to be stored on some kind of database. I would then like to recall the values and display them back into the site (again using JS).
Ill have to make some calculations based on all the values within the database and would like the end result of these calculations to also be called back onto the website through JS.
Basically i dont even know where to start.. everything i read about this topic seems to be aimed at someone who already knows how to initially set up a database and what kind to use. My scripting is rather on the basic side, so something fairly intuative from the database would be really handy.
Does anyone have any suggestions what sort of database i should set up and how i can begin learning this?
Take a look at https://www.codecademy.com
It's free and they have easy to follow courses that will teach you all the technologies you'll need to know to build an interactive web application.
You should check out php (server language) and mysql (database). You should install wamp if you are on a windows server, or mamp for mac. Play around with php and then create your database and play with that. In mysql there is a new interface called PDO for database connection and database requests, you might wanna look into that. Google is your friend and read a lot and try stuff, that is how you learn it. you might also wanna consider taking online classes.

Faceted search on client side [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
Can you suggest a basic faceted search library use at client (browser) side.
I quickly looked through exhibit3, but looks heavy for my usage. It mentioned somewhere that exhibit3 can be used on client side alone, but the setup mentioned a backstage project in java.
http://www.simile-widgets.org/exhibit3/examples/nobelists/nobelists.html
Above is an example usage I am looking for (only the category search, no time line view, etc). If it can group data and allow faceted search from json file (independent of backend), that will suit my purpose.
EDIT:
Found a good walk through of one of the exhibit example here.
It pulls lot of dependencies, and wish there a minified version (ready to use :-) ). Anyone uses this for client only solution for relatively medium size data.
facetedsearch.js looks like it would be appropriate. Find it here: http://eikes.github.com/facetedsearch/ or skip the fancy site and go straight to the code: https://github.com/eikes/facetedsearch/

Javascript + HTML5 localstorage [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
So I'm searching for a good crash course on localstorage and interacting with it in Javascript. I want to build a to-do list webapp with some extra functionality but it would be just for 1 user. I don't want to mess with php/mysql and have the server doing anything. Links to tutorials would be best :-D
Here's a crash crash course I found very useful. It explains a bunch of HTML5 concepts, including localStorage, video tag, offline websites, forms, locations, canvas, and more.
http://diveintohtml5.org/storage.html
There is the offical documentation:
http://dev.w3.org/html5/webstorage/
For a quick demo with code: http://html5demos.com/storage also more html5 demos at the root of that site.
Note there are also things like the YUI 2 Storage Utility which abstract the storage for you (HTML 5, Google Gears, SWF) depending on what the browser supports:
The Storage Utility provides a
mechanism for storing significant
amounts of textual data, client-side,
whether or not your browsers supports
the proposed HTML 5 Storage
specification.
No personal experience but I did come across this link today: http://www.w3avenue.com/2010/05/07/html5-unleashed-tips-tricks-and-techniques/
Which links to this: http://net.tutsplus.com/tutorials/html-css-techniques/quick-tip-learning-about-html5-local-storage/
Have fun!
This small tutorial/code-snippet helped me to get started.
http://hacks.mozilla.org/2009/06/localstorage/
I would recommend one of the other questions asked here about how to store objects in localStorage. It helped me a lot as I am implementing a code editor that can store multiple files and last state of the user.
The stackoverflow question
Both answers posted are very valuable.
Some things to take into consideration:
When do you store data, after each key pressed or after some other specific action/event?
Use a temporary Javascript data structure or only interact with localStorage directly?
Store Data
//Syntax
localStorage.setItem(Key,Value);
Demo

is there a client side (javascript) graph library that doesn't require a server? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I need to generate many internal client-side (within the company only) graphs from streams of data, and since the data itself is "secret", I can't use a service like Google-Graphs for generating the graphs. So I was wondering if anyone has some recomendations for a javascript graph library that doesn't require a server.
Thanks
Have a look at flot a javascript plotting library.
EDIT
The official flot repo lives on github
Have a look at Raphael (github).
The data is likely going to be in plain text if you use a javascript library to render it client side... Even so, jQuery Sparklines can generate simple graphs client-side.
Found a library called PlotKit for Mochi, while looking at Nickf's canvasgraphjs link.
If you use a client-side library, your data is pretty much out in the open. If the data is secret, I think what you need is a library that generates the plot on the server side and outputs images. JFreechart is one library that does this in Java. I am sure there are others.
Check D3.js: JavaScript library for manipulating documents based on data.
I didn't try it myself yet, but it looks promising and interesting.

Categories

Resources