I wrote an iOS app for a client that uses Parse as a backend. My client now wants a website built to display the database contents. It will need to display an image and populate some standard fields.
I'm not a web guy, but I have put together a couple of sites using Rapidweaver. I can't find any examples of people building a site in Rapidweaver that queries a Parse database.
Is this possible?
Related
I want to make a Firefox extension that can store and retrieve data from a database. However I've only been finding solutions that would work locally for each user. I'd like every user to have access to the same database.
Is that possible?
It is possible to access remote SQL databases like MySQL and PostgreSQL with node.js modules, but it is more sensible to create REST API front ends to your databases and call them from the extension. Exposing the SQL calls directly in your web extension is not a good idea. It is basically bad security practice and will expose your database to hackers.
You will also need your addon to pass Mozilla's approval process if you are going to distribute publicly and I doubt the reviewers will be pleased to see raw SQL calls in your extension's code.
The more sensible way is to update the database is through a REST API front end.
A simple example on how to create a REST API for a Postgres database can be found at Node.js, Express.js, and PostgreSQL: CRUD REST API example - LogRocket Blog and this playlist show how to create a REST interface in a Firefox extension - Build a Firefox Extension from Scratch that integrates with Node.js - DEV Community
The above database example is quite simple. For real world use you will need a more advanced REST framework for your API which sanitizes the data before inserting it into the databasse. You have more reading to do here.
However if you need to make SQL calls directly from your extension which I still don't advise, you can include some packages from node.js in your web extension, and use browserify which extracts and packages the modules needed into your extension. Your addons though had better be for private or in-house use, not for public distribution.
Some nodejs modules for database access are - https://github.com/mysqljs/mysql, https://node-postgres.com/ and https://www.npmjs.com/package/pg.
Just a little advice. Feel free to ignore it if you have nothing to do with it. Your question sounds quiet generic. You should learn and doing it by yourself first and only ask here when there are specific issues you're stuck with.
By "locally", I think you mean via Web SQL or IndexedDB. They're called local database and their behaviors are totally different from what you're looking for.
I should haven't need to tell you to do this. Just in case. Of course first thing first you need to know how website is working for both front end and back end, not just local stuff, especially how they're communicating between each other. So you should know about HTTP request, Javascript, and AJAX.
What has it to do with Firefox extension?. Not just Firefox, browser extension is just another type of web page that overlaying the opened web page in all kind of browser. In Firefox the opened page is called activeTabs. The only difference from regular web page is you need to signup your account first, manifest.json file as your project root file, and it compile from command line with web-ext tools. In case if you're facing Cross-origin resource sharing (CORS) restriction, follow instructions HERE and allow the URL on server side.
I am trying to consume my own file REST service in Oracle Apex (v.19.2) using apex_web_service.make_rest_request in a WITH_PLSQL call as the Classic Report source.
My POST and GET REST calls works fine, but I fail to define the parameters for the 'Download BLOB' column in my Classic Report, such that users can download files.
I am currently clueless to what to do...
(I have no problems with all other processes with consuming numerous other ORDS REST services, it is just the files download that is the problem). Thanks in Advance!
The declarative BLOB download in classic (or interactive) reports do not work for reports on top of Web Source Modules. The reason is that the BLOB would first need to be downloaded to the APEX engine, and from there to your browser - which is pretty inefficient.
In most cases, there are separate REST endpoints to download the actual file contents. If these endpoints can be accessed from the browser, I would simply build a Link Column, in which the link to the "file download" button is constructed. When the end user clicks that link, the browser downloads the file, bypassing APEX.
If that does not work and you need to download the file to APEX, and from there to the browser, you would need to use custom PL/SQL code. This article illustrates this nicely (see the "Download" section):
https://blogs.oracle.com/oraclemagazine/better-file-storage-in-oracle-cloud
I hope this helps
I need to develop an application get html content from certain urls and shows them in my own web app.
UI web application will be laravel 5.3 its ok. But the thing is key pointhere that retrieves data from urls(read and parse html content of via url)
and writes it to postgresql db migth be developed within laravel also ?
Before I decide to create this post I feel had to make an web service in python and read url and writes to db and read them within laravel web application. Which one is better or more efficient?
Besides them I also wonder that is possible develop such a web service in laravel
You can use ixudra/curl package. It's powerful, easy to use and you will be free to do anything you want. You can also save results into database. Make sure php-curl module installed on your php before you use this package. there is a pacakge named Guzzle and you can use that package but it's a little bit complicated than ixudra.
when you get html content from requested urls. You can parse the content with yangqi/htmldom package.
I understand that this is a very broad question and could get flagged but I need inputs from experienced programmers and will ask it anyway. If there is another forum where I can post this question, please let me know.
Currently we manage all our application information in an Excel spreadsheet. At a high level it contains an app id, the server names that it is hosted on and the name of the environment. The Excel spreadsheet has become too large and I am looking to build a simple application for it.
Ideally, I would like to write this app on Windows as everyone uses Windows but dont know how to go about it in Windows. I then thought of using MySQL and PHP or Perl (CGI) to build this but thought of exploring something new. I read about Joomla and a few other CMS products which make it very easy to build websites but am not sure whether these allows me to pull information from a database.
I am seeking inputs on what would be a good way to way to build this application.
Use Joomla! CMS is a good choice and to pull data from database you may use webservice calls. So, you will able to create a CMS website using joomla and will able to pull data easily from database with the help of webservice.
You can get webservice support in joomla by installing component redCORE in joomla.
Component: https://github.com/redCOMPONENT-COM/redCORE
Wiki: http://redcomponent-com.github.io/redCORE/?chapters/webservices/overview.md
Other videos: https://www.youtube.com/watch?v=UzJkC7f9fJE
https://www.youtube.com/watch?v=1NRT5jh3Ewc
Joomla dev group discussion https://groups.google.com/d/msg/joomla-dev-cms/3OctbkIZlQw/5d_1MLrzbgYJ
You can also post questions in Joomla forum http://forum.joomla.org/
I think Joomla is a great option to handle big loads of information. If you already know PHP and don't need to reinvent the wheel, it's cool. The way of handling data in Joomla is using Components.
If you want to try, it would be as easy as installing a local copy of Joomla, building the field structure on component-creator.com installing it and importing the data inside the component using phpmyadmin.
i have to develop a minimalistic and simple windows phone 7/7.1 app for my college website for displaying new notices and and any new content in the students' section . The website has a separate page for notices and a separate page for study material download. The site has no rss feeds. Please help me figure out how can i read the data into my app and display it on the app.
the website is www.niecdelhi.ac.in
Thank You
When a site doesn't publicly expose data in a machine readable format, you can scrape the HTML and extract the data yourself. This is a tedious and error-prone process, not to mention that changing the site design will immediately break your code.
To scrape a site, use a library that can access the HTML. For example, you can use HTML Agility Pack to extract data from HTML and then use it for whatever purpose you want.
You can also create a web service that will periodically perform data extraction and you can then publish RSS feed from your own service. This way your mobile applications don't depend on the parsing code which you can always tweak and update.