Install dev-dependencies (sqlx
):
$ make deps
Run related services via docker-compose (postgres, nats):
$ make svc
Create database and run migrations:
$ sqlx database create
$ sqlx migrate run
- Install Nats client:
$ brew tap nats-io/nats-tools
$ brew install nats-io/nats-tools/nats
-
Place the
nats.creds
file in the root of the project. -
Copy the
nats.conf
file and edit it:
cp docker/development/nats/nats.conf{.example,}
- Create a stream on Nats:
$ nats stream add classroom-out --creds=nats.creds --subjects='classroom.>' --storage=memory --replicas=1 --retention=interest --discard=new
# Next "Enter" for all questions
$ make run