Has anyone here an experience with writting an application, where the user is allowed to edit a template of his "profile" online? I mean custom css, html and js - like Tumblr allows that.
What is the best and secure way to do that? Is it better to store the template in a database or in a file?
I am trying to implement this feature with node.js and mongodb, but your experience from other frameworks/languages are welcome too!
Related
I'm trying to learn how to create a Facebook login API using Django-allauth but my limited knowledge tells me that the library requires using the Django template engine to authenticate the user by providing the user with the correct {{ form }}.
So I'm not sure how to create an API version of this functionality using Django-graphene to login with Facebook on a React or Flutter app. Any advice or links to useful articles will be much appreciated. Unfortunately, I don't have a code example of what I've tried since I'm not sure how to go about it in the first place.
I'm currently working on creating a website for my college. I want to include a galary section on the page.
so through admin page, authorities can upload photos of special college events. Now my question is where to store those images. I have two options 1)storing in the Database using gridfs 2) storing in the api. I have done a lot of research on this topic but everyone saying it depends on the situation. What do you think the best option for this situation. I'm still new to server side programming, so please help me. I'm using nodejs with ejs and mongodb
I am building a website using nodejs and express. How to make divisions in a page dynamic? Is Jade used for that? if not how to do it?what is angularjs used for? Please help i searched a lot on google and i couldn't get a clarity in the usage of them.
Jade creates the html used in the browser on the server-side. The browser executes a request to the web-server, the web-server executes Jade, which will generate the html that will be sent to the browser. This server-side content generation has been very common in the last ~20 years, but it has quite some cons when building rich internet application. Mostly this has to do with performance and client state tracking.
AngularJS is a client-side MVC/MVVM like framework to build so called Single Page Applications (SPA), which allows you to have the complete user interface flow, all content generation and state tracking to be done at the client side. It even allows you to build offline applications. From the developer point of view this feels much more like building a desktop application where the client knows the state of the user interface. From the user point of the view the website will respond much smoother and snappier because the UI is all generated locally.
Note: SPA does not mean that you can only have one page in your website.
It's a technical term where the browser downloads one page (~/index.html), which contains the complete or partial web application. The user technically never leaves this page, but the content (pages) is dynamically swapped in and out from this placeholder page.
To most common way to provide data to a SPA is via RESTful web services. AngularJS comes with builtin support for REST.
Some developers combine server-side content generation techniques with AngularJS, but there's actually no real need for this.
Jade is used as a template engine on both server-side and client-side. Yes, it can update a page dynamically, you just have to compile your jade templates to a javascript functions (using jade -c or something similar).
Yes, you can use angular.js with it, but I see no real need to use two template engines in your project. Suggesting to just stick with jade, unless you know what are you doing.
Does anyone know of a tutorial that shows creating a form and writing that data to a database? This is what I am trying to accomplish or can anyone put together the simple code so that I can understand how it works?
I would start with Drupal's API doc on Forms. Also, check out Drupal's documentation on their Database Abstraction Layer.
I'm investigating the possibility of re-using Google Apps/Docs in a local hybrid desktop/browser application.
I've been going through the Google documentation on manipulating docs, eg. the Spreadsheet. I can't seem to find any info on actually hosting the UI. Is this possible, or does it require some form of permission from Google?
You want to basically embed an browser control in your application pointed at the URL of a Google Apps doc? You could use the Google Document List API to retrieve the documents for a user, then use the URLs of those documents in your embedded browser control.
You don't need Google's permission to do that; you're writing a browser with some extra smarts built in.
What do you mean by "hosting the UI?" These apps are HTML/CSS/JavaScript. Are you thinking about embedding them in AIR or Titanium, or in some kind of web control in another app?
i briefly looked into doing this, and figured if i really wanted to i could just load the gdocs page content dynamically, and use javascript to strip away the superflous elements like header and footer. but instead i'll probably just use an OS alternate because they have come a long way and I want rich hooks.