Project for triathlets
Install amber framework.
Then:
shards update
crystal sam.cr -- db:create
crystal sam.cr -- db:migrate
crystal db/seeds.cr
To run the demo:
crystal build src/triathlets.cr
./triathlets
or
amber w
run in production:
nohup amber r -p PORT -e production &
This will start an instance of postgres, migrate the database, run the specs, and launch the site at http://localhost:3000
docker-compose up -d
To view the logs:
docker-compose logs -f
Note: The Docker images are compatible with Heroku.
MIT License