I need to build a bunch of web applications for a company and I'm pretty much starting with a clean slate, which is awesome.
Here is how I would like to build them:
-Dart on the client side
-Dart on the server side
-A websocket connection between the two
-The Server connects to mySQL (required)
-Users authenticate via LDAP (required since from an existing AD)
-I would like to use the standard Dart Editor (to keep it simple)
-The whole thing will be deployed on an Ubuntu server in the company's internal network.
So far I've put the server and client code in the same project folder in the Dart Editor, the server code in the 'bin' folder and the client code in the 'web' folder. This way I can run/develop it easily on my local machine.
The server looks something like this:
HttpServer.bind(InternetAddress.ANY_IP_V4, port).then((server) {
log.info("Calendar server is running on " "'http://${server.address.address}:$port/'");
var router = new Router(server);
router.serve('/ws').transform(new WebSocketTransformer()).listen(handleWebSocket).onError((value) => print(value));
There are a few questions I'd like to ask. I'd be happy if someone could point me in the right direction.
1. Does this kind of architecture make sense to you?
2. Since I'm surely not the only one building web apps with these kinds of requirements, where can I find examples of projects with a similar setup?
3. Am I maybe on the wrong track/missing something basic?
4. Is there an alternative way to authenticate users from an existing Active Directory (some easy to use middleware maybe)?
5. Where can I find an example of a Dart client to Dart server SSL encrypted websocket connection?