crystal_crud_app

sugar

db

make this binary executable chmod +x bin/micrate and adjust database url there (adjust the one in models/post too).

then:

bin/micrate create create_posts

bin/micrate up

do some crud stuff cli style:

crystal ./src/sugar.cr -t Index

crystal ./src/sugar.cr -t Index -p "{\"published\":true}"

crystal ./src/sugar.cr -t Create -p "{\"title\":\"Crystal is good\",\"body\":\"shards there are\",\"published\":true}"

Repository

crystal_crud_app

Owner
Statistic
  • 1
  • 0
  • 0
  • 0
  • 2
  • almost 3 years ago
  • June 21, 2021
License

MIT License

Links
Synced at

Mon, 06 May 2024 13:47:36 GMT

Languages