Best practices and architecture for SPA [closed] - asp.net-mvc-4

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 8 years ago.
Improve this question
I realise this may be an opinion based question, but I am am curious if there are any best practices regarding setting up a new SPA in Visual Studio.
I have some experience with TypeScript, Knockout, Underscore, Moment, Razor and MVC4 framework (and EF6).
What interest me the most is:
-Is there a VS SPA template that is considered "the best" or do I start from scratch?
-What kind of projects and naming conventions should i use in VS?
-What libraries is considered as good combinations in SPA (Angular.js is something I'm looking into) ?
-What is consideres best practices regarding client call to retrieve data from a database (first and foremost Ajax call)
-Best practices regarding HTML/CSS coding
Do you know about about a tutorial or documentation that you have used and found very helpful on the subject(s) and that is regarded as a "must read"?
Maybe somethings in the lines of this:
http://isobar-idev.github.io/code-standards/
http://msdn.microsoft.com/en-us/magazine/dn605877.aspx
UPDATE (what I learned so far):
Client:
Ember or AngularJS for main framework
TypeScript and DefinatelyTyped for getting type completion
If Angular: Drop RequireJS as it does not play along with Angular -> http://developer.telerik.com/featured/requiring-vs-browerifying-angular/
Lo-dash (replacement for underscore -> Differences between lodash and underscore)
Ditch the Razor view engine as it does not play very well with Angular -> Razor templates, views and angular.js
Moment.js (for handling dates -> http://www.techrepublic.com/blog/software-engineer/momentjs-simplifies-working-with-date-values-in-javascript/)
Client-Server communication:
Breeze for quering the server for data and exhange of metadata(?) -> http://www.breezejs.com/
SignalR (under consideration as I am building a forum/chat system in my webapp)
Websockets (if I need realtime solutions...)
Server:
Asp.Net WebApi for HTTP services
EF 6 (for creating entities)
Database:
SQL server express for now (for ease of entity generation), other suggestions?
VS directory structure and project definitions:
Not sure about this yet..

Related

What are options for Flutter App Backend? [closed]

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 3 years ago.
Improve this question
Flutter is amazing but when your architecture needs the backend to be separate from the app. What are some options that will be good to consider?
Some options that I have looked at are: Node.js, Java, Dart & Firebase (Unsure whether Firebase can meet all the requirements as a sole backend of production-level apps)
We need to develop a full-fledged REST API which will be used in Production with the Flutter app.
Thank you
It really depends how much time you have, and you're willing to spend on your backend. If you're rushed and want an MVP as soon as possible I would suggest FireBase, It provide great a simple but efficient database and more tools like instant messaging, built-in push.
If you have more time and want to build you're own features, Node.js with Express and Mongodb would be perfect.
Have you looked into .NET Core Web Api? I have used on some projects on college together with MongoDb and works really well, I never try it with Flutter, but as a Api it works fine.
Edit: I just found this question, maybe it can help you Combining Flutter frontend with .NET Core backend for Android and iOS

API for Contributing to Google Translate [closed]

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 4 years ago.
Improve this question
I want to be able to contribute to Google Translate on my native language (Sinhala).
Although there is an online portal (http://translate.google.com/community/) where we can contribute to the translator by translating new phrases or validating existing translations, I would like to create my own, lightweight portal (maybe an Android app) for the contribution service. However, I was unable to find any public API for the translate contribution platform, despite a thorough Google search and a full search through the Google Translator Toolkit API forum (https://productforums.google.com/forum/m/#!categories/translator-toolkit-api) (which seems to have been closed down since the end of 2012).
Currently my best hope is to mimic the request-response sequence followed by the online portal itself. For example, the following request is used by the online portal to fetch a question list for manual translation:
GET http://translate.google.com/community/question_list?sl=en&tl=si&client=t
However, it requires that all the related cookies are properly initialized and passed with the request, which would probably not be easy to mimic in a non-browser environment (such as an Android app). Hence I believe there's a better approach (maybe a yet undocumented API?) somewhere out there.
Does anyone know of any API for accessing this translation contribution feature?
Thanks in advance.
Please note: I am NOT looking for a way to improve Google Translate itself, but for contributing to the actual translation content as described under "How can I help?" in the Google Translate Community FAQ (https://docs.google.com/document/d/1dwS4CZzgZwmvoB9pAx4A6Yytmv7itk_XE968RMiqpMY/pub#h.e1ahmpftpdum).
P.S. I was initially planning to post this question on the Web Apps Stack Exchange, but after reading this post I decided to first try it here.
I'm one of the engineers behind Translate Community and I'm really excited that you want to see it on more platforms. We're currently under active development of the site and making it more accessible on mobile platforms without having to create dedicated native apps.
For the time being, we don't anticipate releasing a public API as the platform is under active development. Until we do release a public API, please don't use any http commands you find to create a separate app. Instead, just let us know how we can make the app a better experience for you and we'll work on making it better.
Thanks!

How to develop web desktop using ExtJS 4? [closed]

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 3 years ago.
Improve this question
I have learned basics of ExtJS and developed some web apps using ExtJS. Now I have to develop web desktop using ExtJS (like desktop app which is present in examples folder) but I am not able to find any documentation or tutorial or book about how to develop it.
Does anyone knows how to develop web desktop application using ExtJS 4? Where can I get any tutorial/ book/ video about developing web desktop?
I doubt you'll find a book or tutorial dedicated to exactly what you're looking for, but you can put together enough resources across the internet to do the trick.
A Google search of "extjs 4 cookbook" turned up a book called "Ext JS 4 Web Application Development Cookbook" that seems to have plenty of information. However, it seems very new and I personally haven't read it, so I can't vouch for it. But it's there.
Other than that, Sencha's own documentation site will have most of what you need. The series of articles on App Architecture may be of some use if you're planning to take the MVC approach, as will the articles on components and layouts.
That will cover the basics, but there's no real definitive guide to making a web desktop app that I'm aware of. It all depends on what your requirements are, how much time you have available, etc. If you're looking for help with a specific component (like creating a Windows-style file browser system) then you'll probably have better luck asking more narrow questions.
You can just use default Web Desktop Sample provided by Sencha and modify it a little bit.
I am also interested in, I did what I advice you, so you can look what I have received now:
http://www.bdovhan.orgfree.com/
Hmmm, these free hosting providers use lot of ads if your site becomes clickable.
I created another mirror, there should be no ads: http://www.julfysoft.16mb.com/index.html
but it can take a while to load it...
We inspired from the desktop sample and we build a full functional web app using Extj 6.7 along with Unigui Framework (Delphi), and the result is awsome:
Just implementing the idea step by step.

"Reverse Engineering" App Architecture [closed]

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 6 years ago.
Improve this question
I inherited an old app, written in C#/.NET 2.0. (un)Luckily there was no documentation - not even comments. So as I'm adding enhancements to the application based on new requirements I'm also building a mental model of what the app does and how it does it - architecture in other words.
I was wondering what tools exist out there to "deconstruct" the app and go from raw code to something higher level? The app's not really heavy in OO - in fact one of the objects used is called a "function". It's mostly just a bunch of methods - a lot methods that seem to jump out of nowhere.
I want to translate the raw code to some sort of requirements doc stating what the app does and how it executes. What's the best way to do it? Are there any apps out there that can help me? Maybe templates of what I should/should not include? Maybe books/sites that you recommend? The goal is to provide documentation for me and for future developers maintaining the app.
Personally, I would start with Robert C Martin's Agile book, and Eric Evan's book on Domain Driven Design. Those are theory books, but Uncle Bob's book specifically talks about revamping code to be manageable, just like your situation.
It's pretty essential to layer your software so you can start to remove dependencies, which will make everything very simple and easy to maintain.
I am a database guy, so I started with a good ORM like Entity Framework or Fluent NHibernate. I prefer websites, so I went with ASP.NET's MVC 2, then started writing all the parts of those books, namely a data Repository, Services to pull data and Control to push it. MVC is a very nice separation of data concerns and "View" concerns which are your screens. Before long, you would have very clean and easily maintained software.
If you are using VS 2010, you can see a menu with the name: Architecture. Using this tool, you can create a dependency graph of your application, you can use it as described in the following:
Link

(My)SQL in Flex - any good libraries? [closed]

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 need to develop a small Flex application that needs to access a MySQL database. Since I have little experience in server-side Java, PHP programming I would prefer to use a library/framework that allows me to write SQL queries in ActionScript/MXML.
After a bit of research, I have come across two 3rd party libraries, AS3FlexDB(free) and Adobe Flex Connector for MySQL(45$). Initial tests with AS3FlexDB are promising, but I'm a bit afraid that I'll start to work on the project only to find out that I need a full-fledged back-end after all.
Do any of you have experience with these tools? If so, are they stable enough for production? Are there any such libraries for other relational databases(PostgreSQL in particular)?
Thank you!
Lawrence
this and CRUD like this and read this
AS SQL Lib and another one CRUD
and final happiness
Flex is a UI Framework and is not designed for database interaction. I strongly recommend you reconsider the approach and learn a server side language. You'll thank yourself in the long run.
that said, another option is FlexSQL. This is the first time I've heard of the two you mentioned.
I have no idea why people keep building these libraries. It's like trying to use a screwdriver and nails together. It is, in theory possible but better tools exist.
I agree that server-side db interaction is the way to go, but nobody has mentioned the possibility of web services. Use this article to create a number of web services that your flex client can connect to directly.