Zendro-dev / graphql-server

Skeleton NodeJS project for a graphQL server.
GNU General Public License v3.0
0 stars 1 forks source link

DB is not found when zendro starts without docker #98

Open VivianBass opened 1 year ago

VivianBass commented 1 year ago

We have to modify the file ./graphql-server/config/data_models_storage_config.json when we want to start zendro without docker, but for the getting started guide we should have a default database, if not, the database is not found.

I propose to have two files as the config in Starter pack:

  1. data_models_storage_config.json
  2. data_models_storage_config_example.json

In the first one we can have

{
  "default-sql": {
    "storageType": "sql",
    "dialect": "sqlite",
    "storage": "data.db"
  }
}

and in the second we can have all database connections examples.

asishallab commented 1 year ago

Go ahead @VivianBass , but please run the tests we have after introducing the changes.