I have a Backbone app running on Parse.com and i would like to integrate it into Meteor. The main reason i'm doing this is because with the Parse.com javascript SDK your keys are exposed and i'm trying to hide them and just render the content directly. Is this even possible? Can the javascript SDK run on the server?
I just started with Meteor and it looks promising but i'm having a hard time understanding the dynamics of how it works and if it would be possible to integrate it into a database hosted in Parse.com which has it's own custom objects and methods.
In this case for example:
Step = new Meteor.Collection("step");
This data is served from the mongoDB in meteor, would it be possible to serve it from Parse.com?
Summing up:
Is it possible to run the Parse.com javascript SDK on the server and have access to their objects?
if question1 == true, how can I replace the content being served to the Meteor.Collections from the MongoDB to my Parse objects.
Any thoughts will be greatly appreciated.
Related
Hi guys I’m trying to bulid a website which django works as an rest-api and react works as a front side. I manage to do the whole thing just fine and about to deploy it using aws. But there is one thing I couldn’t really get. Inside my django project I have an app that uses only django template to render things to front. And other apps are working only as apis to get and post things via react. Is it possible to deploy this kind of structure without any special options? I searched internet for a while but I couldn’t really find an example that fits my situation. Thanks!
Yes, you should be able to deploy it without extra options: you can have one Django template view to host the React app entry point, and the rest would be Rest API views that are accessed by React.
Joined in an existing project with flask python, it is a combined backend with template to show html on front end, is there a way I add a separate from end framework like react for new features? like the existing ones are kept untouched, just add new features with react in front end?
or have to implement new features in the flask?
basically the concern is with flask python, websites not that modern. I know we can also use bootstrap or semantic UI,but not sure. quite new in react. for the flask, get to know from last week...any help will be really appreciated.
The best way is to convert the existing flask app to a REST API the classic way that flask uses is that the server returns a template (HTML page) using information in the DB. Another way is instead of returning a template, the server should returns JSON data that the client (React, VueJS, Angular, Android, IOS...) can get it (with tools like Axios...) and display it to the user.
Flask-RESTful is an extension for Flask that adds support for quickly building REST APIs.
I have to create an application where users will have their unique usernames and profiles like "website.com/JohnDoe". for that the client asked me to develop it in any good PHP framework and client also need an android/ios app (which he disclosed after 2nd meeting) . so I was(before 2nd meeting) going to use Laravel totally. but since he said he wanted a mobile app too, so I decided to use Laravel as backend API, for Web frontend I will use Reactjs and for Mobile I would use ReactNative ( I've done same before). since Laravel provides react support so my I was planning to use React within the laravel.
Then client said he is more concern about SEO of his website. so I had two options
Use laravel as API provider only. and create ReactJS app totally separate from Laravel.
In this case I will need Nodejs server. Then I thought If I have a nodejs server than why would I go for laravel, I could use Express.
Use ReactJS within laravel and use any SSR package to cope with ssr.
If I am going for second option, can anyone point me to already live website which uses React Helmet SSR or Laravel-react-ssr?
Laravel react-ssr: https://github.com/spatie/laravel-server-side-rendering
React Helmet-ssr: https://github.com/nfl/react-helmet#server-usage
I have read both, and I am too confused. I am beginner in both Laravel and React(node) so I am unable to understand what both are proposing.
i deployed your 2 option mentioned let me give you the site https://v3.topviewnyc.com/, i created a microservice which would take care of SSR besides my hooks and components are build on react so am totally able of enjoy the SPA frontend side with react using components and get data via laravels API
I am trying to integrate Angular with Django. I have 2 approaches which one is the best way:
Build a separate angular app and serve it's static files to django to render. In this way the routing and rendering everything will be handled by Angular.
Or to build templates in django using Angular directly and use MVT architecture of Django only.
Which is the correct way from architecture point of view? If not these two please suggest any good approach.
I'm not using AngularJS (actually I'm using VueJS but it's kinda the same) but here is what is usually done :
You do your models as usual, using Django. It defines your database structure.
You build an API that exposes your datas. For that you can use DRF (Django Rest Framework) for a REST API or graphene-django to build a GraphQL API)
You code components to build pages. And you retrieve your datas to display from the API.
For my project, I personnally use :
Django
graphene-django for a GraphQL API
Apollo Client to fetch data from the GraphQL API
VueJS for the frontend components
There are lots of tutorials on how to combine all of these so I guess there are some for AngularJS too.
You should be able to do something similar with AngularJS.
Finally, it is more like the first approach that you described. You'll have some build step that will create a bundle of files with a index.html or similar. The thing to do is to tell Django : "Hey, for any URL, point to that file".
Note that the thing I'm describing is for building a SPA (Single Page Application).
I have a NativeScript application which I would like to integrate, combine, or use with a new integrating app that I would like to build with Stoutem which is developed with Native Script and using it's own Cloud Storage. I would like to leverage the components, extensions or modules already built in Stoutem to use with my existing app.
Does anyone know how to achieve this or have tried it?
I am thinking of the routing or navigation. The data could be shared through API.
Update:
I got a suggestion on loading Stoutem Extensions in a frame under our NativeScript app.