coffeenights / conure

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Conure

Running the development environment

1. Pre requisites

  • Install docker and docker-compose.
  • Install the Dapr framework, the CLI and initialize the local environment (https://docs.dapr.io/getting-started/install-dapr-cli/)
  • You will need a postgres and a redis server available. You could use the ones present in the docker-compose.yml file, simply run:
$ docker-compose run -d db
$ docker-compose run -d redis 
  • Set the environments file by making a copy of the config.env file and renaming it to .env.

NOTE: Take in consideration that the DB_URL variable inside the config.env file is set with the credentials of the postgres in the docker-compose file, if you want to use your own postgres instance you must change the content of the DB_URL to fit your instance.

2. Run the dapr sidecars

from the project's root folder, you must run the following command:

$ dapr run -f ./dapr/dev/.

This will run the sidecars for the applications, and now you can run each application individually, i.e.

$ go run ./cmd/api-server/main.go

About

License:GNU Affero General Public License v3.0


Languages

Language:Go 95.0%Language:Makefile 2.8%Language:CUE 1.7%Language:Dockerfile 0.6%