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 have created Restful APIs in Node.js and now I plan to document them so they can be shared with others. I spent the past couple of days researching in to this and I found Swagger and started exploring what it had to offer. I really like Swagger-UI, It takes a JSON object and generates a document as displayed by this Demo. Another option is using the Swagger-Editor however this means writing out manually and I am not interested in that.
So basically I feel if I can generate the JSON object based on docstrings/comments I write in my api .js files I can then simply pass the JSON in to swagger-UI and have my beautiful document. I was looking for some tool that can help me achieve this. Any tool or tutorial would help out a lot. I have looked at all the tools listed on Swagger Open Source Integration Section.
Perhaps I missed something but would definitely appreciate if someone can point me in the right direction. I am not interested in design first approach etc. I already have existing APIs and would like to generate documents for them. I highly appreciate prompt replies from experienced users as I am really stuck on this. I have no sense of direction right now.
Additional Notes
I guess a perhaps a tool that can even help me create that JSON object would be a good idea but I do feel I might have missed something since swagger is so popular I am sure this must be done before.
So I have found a really nice tool that does exactly what i want. I hope others can find this post useful. I found something called api-doc swagger. It utilizes api-doc which converts docstrings in to a json object. This api-doc swagger tool goes further and converts that json object in to swagger json format which you can then pass in to the swagger-ui.
Related
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 1 year ago.
Improve this question
I just want to ask if there is any resource which can do PDF to Editable Document conversion like in Word, Excel or powerpoint. Let me know if it is possible. My preferred architecture is NodeJS or Javascript. I have done following research:
Reading the .pdf in binary and extracting all information then creating the document according to that but it is a very long term solution.
I want to do the conversion in editable way so i don't want to do it using images mapping.
Do share if there is any paid resource available, and it must not be an API because i need to give offline support.
Regards
Ali Muqaddas
You can use unoconf (https://github.com/gfloyd/node-unoconv) for that.
Example from the library README:
unoconv.convert('document.docx', 'pdf', function (err, result) {
// result is returned as a Buffer
fs.writeFile('converted.pdf', result);
});
I don't think there is a clear solution for this.
I have also been looking for the same thing. I have found these 2 APIs that allow for this, but I'm looking for something offline too.
Nonetheless, these APIs might be useful for you or maybe they are exactly what you have been looking for.
PDFTron - Limited documentation and kinda unclear. I tried to work with this a couple of times but never managed to get it working, but if you can seeing from their demo, the results look really nice.
ASPOSE - Offers a free tier demo license, however, the conversion is a bit...weird. Meaning no images just text, therefore, the padding and margin are way off.
Doing the opposite is easy and FREE! (DOCX -> PDF), however, (PDF -> DOCX) seems to be (1) Expensive and (2) Impossible to implement offline.
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.
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
me and my friend have this develop a game in 18 hour competition on friday, and we have to use javascript (I don't know why) and it isn't very pleasant to work on the same project from two computers and exchange code over a network share folder, is there any way to have a sort of Google docs for javascript coding? Where we can both edit the same document in real time from two different computers? Any time appreciated.
You're referring to "version control".
A good tool (usually the de-facto) for that is Git.
You can then push your code to something like GitHub.
Lots of stuff you can do with this... You can both have individual branches, push them to GitHub, and then "diff" them, meaning you can see individual changes line-by-line and decide what you want to keep or discard. These can be merged to, say, a master branch which represents your final product.
use some sort of source control! Github is an excellent site to use GIT with. Other options include, but are not limited to, SVN and mecurial
SVN, GitHub, TFS are good tools for source control. They will also provide you the ability to check in/check out so that things can be merged in the background. So, if you and your friend are working on the same file and both commit the changes, they would be merged together. However, if you're wanting to see your buddies changes as he types, you're going to need to write something to do this. If you want this type of functionality, there's a cool library out there called signalR (http://signalr.net/). This may be a little overkill but I don't know any text editors out there that will allow you to see someone elses changes as they type. You could probably spin something up with ajax calls but again, that would be overkill and performance would be an issue.
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)
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.