kemal_and_jennifer_blp
WEB API Crystal-lang
A boilerplate for api creation with Crystal-lang, Kemal web framework and jennifer orm.
Installation
git clone https://github.com/BLRocha/kemal_and_jennifer_blp.git
cd kemal_and_jennifer_blp
dependencies
dependencies:
kemal:
github: kemalcr/kemal
sqlite3:
github: crystal-lang/crystal-sqlite3
version: "0.18.0"
jennifer_sqlite3_adapter:
github: imdrasil/jennifer_sqlite3_adapter
version: "~> 0.4.0"
jennifer:
github: imdrasil/jennifer.cr
version: "~> 0.13.0"
sam:
github: imdrasil/sam.cr
Usage
- Go to the config/ folder and check if the databse settings are in accordance with your setup and check that your database drive is in shards.yml
- Install dependencies.
shards install
- Models generation is up to you, for help with sam.cr commands.
crystal sam.cr help
- up the database with the tables and migrates execute:
crystal sam.cr db:setup
.
Contributors
- Leandro Rocha - creator and maintainer
Repository
kemal_and_jennifer_blp
Owner
Statistic
- 0
- 0
- 0
- 0
- 5
- over 1 year ago
- June 23, 2023
License
MIT License
Links
Synced at
Thu, 26 Dec 2024 00:22:55 GMT
Languages