crystal
and amber
postgresql
(default), mysql
, or sqlite
.brew install [database]
docker-compose.yml
that can be used for this purpose.amber new
cd
into the new directory and execute a shards install
.-d mysql
or -d sqlite
for mysql and sqlite, respectively.amber generate scaffold
command will help us do this.g
is shorthand for generate
amber db
will help us do this, as you will see you can chain the db
commands together.pets
table with the specified columns.amber watch
to both build the binary application and start the server. Additionally, amber watch
will detect code changes then recompile and restart the application automatically.watch
commands will keep observing for file changes within the project and recompiling the application.