Changes to the question

What is the process for making 1 app with multiple databases so I can distribute to different companies?

In order to preserve the promise of transparency and open communication, the change log records changes to topics made by both customers and employees. Anyone can dispute a change by clicking the "Dispute" link and entering additional details.


  • February 04, 2018 22:06
    Bruce Stuart
    Change in reply by Bruce Stuart to Steven,<br /><br /><br />The area several more elegant solutions than the separate Api express projects.<br /><br /><br />Here’s what we do:<br /><br /><br />1. You need to associate users to organizations ( companies ). You can do this in the user table by pointing them to a record in your organization table.<br /><br /><br />2. You need to have an organization table. In that table you can associate the organization to a database and it’s database key.<br /><br /><br />3. As part of login for the user ... read the org they are associated with and the database key.<br /><br /><br />4. As part of the login process ... replace the database key for all of Data services ... with the key read in #3. You can do this in JavaScript by:<br /><br /><br />Mydatabaseservicename.database_id = keyfrom#3<br /><br /><br />Your app will then read the data / save/ etc from the new database.<br /><br />You’ll need to manage a login and token into the ‘destination’ database ... however that in the grand scheme of things ... this will be the least of your worries .<br /><br /><br />We have several apps that do that ... that we’ve developed for different companies . <br /><br /><br />There’s a lot of work in creating the user sign in process, and registration process ( we use an invite methodology for some ).<br /><br /><br />We have a canned process for doing this and it takes us About 4 Days to implement. From scratch ... probably 2-3 weeks worth of effort. <br /><br />If you need help or want to outsource ... we’d love to help. However, hopefully this helps you grasp the concepts involved ... prior to dealing with the complexities.<br /><br /><br />Best,<br /><br />Bruce.
  • February 04, 2018 22:04
    Bruce Stuart
    Change in reply by Bruce Stuart to Steven,<br /> <br /><br />The area several more elegant solutions than the separate Api express projects.<br /> <br /><br />Here’s what we do:<br /> <br /><br />1. You need to associate users to organizations ( companies ). You can do this in the user table by pointing them to a record in your organization table.<br /> <br /><br />2. You need to have an organization table. In that table you can associate the organization to a database and it’s database key.<br /> <br /><br />3. As part of login for the user ... read the org they are associated with an the database key.<br /> <br /><br />4. As part of the login process ... replace the database key for all of Data services ... with the key read in #3. You can do this in JavaScript by:<br /> <br /><br />Mydatabaseservicename.database_id = keyfrom#3<br /> <br /><br />Your app will then read the data / save/ etc from the new database.<br /><br /> You’ll need to manage a login and token into the ‘destination’ database ... however that in the grand scheme of things ... this will be the least of your worries .<br /> <br /><br />We have several apps that do that ... that we’ve developed for different companies . <br /> <br /><br />There’s a lot of work in creating the user sign in process, and registration process ( we use an invite methodology for some ).<br /> <br /><br />We have a canned process for doing this and it takes us About 4 Days to implement. From scratch ... probably 2-3 weeks worth of effort. <br /><br /> If you need help or want to outsource ... we’d love to help. However, hopefully this helps you grasp the concepts involved ... prior to dealing with the complexities.<br /> <br /><br />Best,<br /> <br />Bruce.
  • February 04, 2018 22:03
    Bruce Stuart
    Change in reply by Bruce Stuart to Steven, <br /><br /> The area several more elegant solutions than the separate Api express projects. <br /><br /> Here’s what we do: <br /><br /> 1. You need to associate users to organizations ( companies ). You can do this in the user table by pointing them to a record in your organization table. <br /><br /> 2. You need to have an organization table. In that table you can associate the organization to a database and it’s database key. <br /><br /> 3. As part of login for the user ... read the org they are associated with an the database key. <br /><br /> 4. As part of the login process ... replace the database key for all of Data services ... with the key read in #3. You can do this in JavaScript by: <br /><br /> Mydatabaseservicename.database_id = keyfrom#3 <br /><br /> Your app will then read the data / save/ etc from the new database. You’ll need to manage a login and token into the ‘destination’ database ... however that inbthe frand scheme of things ... is the least of your worries . <br /><br /> We have several apps that do that ... that we’ve developed for different companies . <br /><br /> There’s a lot of work in creating the user sign in process, and registration process ( we use an invite methodology for some ). <br /><br /> We have a canned process for doing this and it takes us About 4 Days to implement. From scratch ... probably 2-3 weeks worth of effort. If you need help or want to outsource ... we’d love to help. However, hopefully this helps you grasp the concepts involved ... prior to dealing with the complexities. <br /><br /> Best, <br /> Bruce.

See all changes made to topics in this company