amber-crud

Example with Amber_Crystal

Amber Blog

Create amber_blog_development table in mysql for now.

CREATE TABLE posts (
  id BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY,
  title VARCHAR(255),
  content TEXT,
  created_at TIMESTAMP NULL,
  updated_at TIMESTAMP NULL
);

Update dependencies and run.

crystal deps update
crystal src/demo.cr

Visit

http://localhost:4000/posts
Repository

amber-crud

Owner
Statistic
  • 3
  • 0
  • 0
  • 0
  • 1
  • over 7 years ago
  • May 11, 2017
License

Links
Synced at

Sat, 21 Dec 2024 16:00:25 GMT

Languages