You know that we care about your time, so we created a local launcher for your services. But you also know that your services have a local database to store your objects. Let's setup a local Postgre database.
I love working with their simplest version: postgreapp. Go there and download it.
Launch the application. You have your local postgre database. You should see a small icon of postgre in your menu top bar.
Now you can go in any of your services folders and and edit codestore.yaml file. You should see something like that :
serviceId: 145localConfiguration:database:port: 5432database: databasepassword: passwordusername: usernamehost: localhostapplication:port: 3000
Change the database name, password, and username to the ones from postgre configuration.
To test your connection, nothing more simple : execute in the root folder of your service
cs dev command. You should see something like that :
cs dev2020-09-11T10:10:00.638Z [NPM] Installing dependencies2020-09-11T10:10:05.359Z [TypeScript] Compiling typescript code2020-09-11T10:10:13.745Z [GraphQL] Validating schema2020-09-11T10:10:13.767Z [GraphQL] Validating queries and mutations2020-09-11T10:10:17.168Z [INFO] Starting development server2020-09-11T10:10:17.168Z [Bootstrap] Start bootstrapping the application2020-09-11T10:10:17.168Z [Database] Connecting to database2020-09-11T10:10:17.316Z [Database] Successfully connected2020-09-11T10:10:17.441Z [Database] Migrations ran2020-09-11T10:10:17.443Z [GqlLoader] Loaded queries: load2020-09-11T10:10:17.462Z [Bootstrap] Graphql is available on: http://localhost:3000/graphql