Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
I'm in the process of setting up the development environment for a new web application, that will ultimately have a mobile component added. This is being built as a React Front-end Application that will use Google Cloud Functions for the back-end.
For source control, issue tracking, project management, I'll be using GitHub.
My question is, should I try to have a separate repository for the back-end Cloud Functions and one for the React-app front-end? Or Is it just easier to have a single application/repository and have the Google Functions live in the Functions folder?
When we add the mobile component, it will be a separate application/repository..but curious if there is any benefit to try and keep server cloud functions in their own repo?
The best practice is to separate concerns, which means having your react front-end application separate from your back-end cloud Functions.
The answer to this question is opinion-based prone.
In my opinion, I would strongly recommend anyone to not start a project using separate repositories unless there is a good reason to do so.
Separating concerns in folders within a repo should suffice. See this discussion for more background.
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 12 months ago.
Improve this question
I have an eCommerce store built with Next JS and Django. I would like to now migrate from using the Django admin site to using a sleeker, more interactive React admin site and am trying to decide on which to use between Next JS and Create React -- I don't need the SEO but even after reading countless articles and watching countless videos on YouTube, I still don't know why else I would choose one over the other and which is best suited for my application. It feels to me like Create React is equivalent to Next JS using client side rendering (i.e. fetch and the useEffect hook).
The reason for not integrating the admin into the Next JS app is because it's just so much easier for me to consider it as a separate app especially when it comes to security and handling authentication. And Typescript types would clash a lot if I combined them. Also, would AWS charge me double for having two apps? That could be another decisive factor.
* I know this is opinion based, but they're invaluable to me at this point.
If you know about React or Next.js then choose that framework. In addition, if you are using AWS for hosting your web applications then charges are calculated according to your resource usage, so before choosing any one of the frameworks just calculate and have some knowledge on the AWS billing cycle. This will be helpful for your project cost.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
Is it possible to deploy a react-redux application to the cloud foundry environment of the SAP Cloud Platform and is it a supported way of the new SAP Cloud Application Programming Model ?
I cannot find any official resources on that so far.
Sure you can do it. You can build a CAP backend app (with a HANA db for example), add an HTML5 frontend app with any framework you like (React, Angular, Vue, etc...) and glue it all together with the App Router, for dispatching your calls.
Here explained step-by-step how to do this:
https://blogs.sap.com/2020/09/01/how-to-build-end-to-end-custom-applications-in-cloud-foundry/?update=updated
To answer your first question, Yes It should be possible to deploy a react-redux based JavaScript application on SAP CF. You can use the static buildback for on cloud foundry. You can check the documentation here.
To answer your second question, I am not completely sure about that, But you can use CAP to generate your database and OData services, and consume them in your application. Additionaly you can check SAP fundamental react
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I am new to both responsive web design and angular and I am working on building a web page that will access database and display things based on data in one of the SQL Server tables. Could someone please point me in the right direction of what can i use to grab data from the database? Do I need a web service? data component? what technology would be best to use?
For the responsive aspect, you can use simple CSS, media queries or any library designed for this purpose (like Twitter-bootstrap for example).
AngularJS won't access database directly since it's a client-side language. You will need to build a server-side application to access the database. Then, your Angular components can call your server-side application to retrieve data.
AngularJS modules + any-technology web-service can be a suitable solution.
The choice of a technology over another highly depends on your needs and constraints. Unless you can ask more precise questions, we cannnot help so much.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
When you create a project and apps with Django, the Django engine creates the initial structure.
But when creating a project that runs Django and AngularJS on the same server, what structure do you recommend and why?
At first avoid this kind of question here in Stackoverflow because it's just primairly opinion-based. Check Stackoverflow Guide to better understand the rules.
When it's about code structure, you can find like the best answer since the structure it depends of many factors (project size, team work, developer background etc). I worken on some projects using Django, Django Rest Framework and AngularJS and end up with:
if the Angular app is small app it's more convinient to follow django structure so html files in TEMPLATES and js files in STATIC
if the Angular app is more complex on term of structure, it's better to have separate App so you make both your client and server side more maintainable and in this case I will recommand Cookiecutter as structure for Django; it's one of the most used structure and for AngularJS I will recommend the famous Angular Seed.
Make sure you take the right choice ;)
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
We've made this monitoring tool at our company.
It's not in our line of business so we might as well opensource the tool, and maybe someone else likes it as well, maybe they'll contribute.
The tool runs on AppEngine, so there are so the are some paths in the appengine configuration, that might be a good idea to keep hidden. Unless someone else wants to start using our appengine qouta.
Is there a best practice for open-sourcing AppEngine applications?
Does anyone have any experience to share regarding opensourcing appengine sites?
You can get some ideas from excellent gae-init. The way its working in order to avoid exposing sensitive information, is moving it in a stand alone project, you can even use gae-init for that ;)
As part of the model is a Config class which holds all the information as it concerns the service and its dependencies. There are some default values there but it can also be easily customized from a web interface called admin. Have a look.