3 ms·
In the Stackblitz example the Angular client is connecting directly to the SapphireDB database with credentials stored in the app.module.ts. Could you build a
by niblettc 7y ago
In the Stackblitz example the Angular client is connecting directly to the SapphireDB database with credentials stored in the app.module.ts.
Could you build a scalable real world, production application this way?
With no in the middle NodeJS web server handing business logic? Handle all the business logic in the Angular client and just CRUD the objects back to SapphireDB? Essentially just Client--> SapphireDB
Or am I missing something here? I see there's a asp.net configuration, which would be Client--> Server--> SapphireDB
Is there a package or support for connecting a NodeJS server to SapphireDB database?
Also, is this production ready?
- morrisjdev 7y agoThe credentials you found in the app.module.ts are just credentials to identify the client (not the user). It is just to give an extra layer of security and only allow specific applications access to the server. User authentication is handled through tokens for example. The architecture looks more like this: Client -> Asp.Net Core server with SapphireDb -> any database server SapphireDb is not a database. Its more like the connector between database and clients. Because of that there is no package for a NodeJS because it would just be proxy. Yes I think it is production ready. I'll add a section in the docs describing the criteria this opinion is based on.