Setup a local database with your service
To help you with local development of you services you'll need a local Postgre database.
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.
This tutorial covers postgre setup for mac. Follow postgre site instruction for other OS.
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 :
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 :
Last updated