crystal_lucky
Version, currently master branch1 version
- master branchlatestJul 21, 2021
github.com/alextanhongpin/crystal-lucky
Crystal Lucky Framework
0 stars
0 dependents
License: not declared
Installation
# Add this to your shard.yml
dependencies:
crystal_lucky:
github: alextanhongpin/crystal-lucky
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
0.36.1- Author
- alextanhongpin
- Target
crystal_luckyfrom src/crystal_lucky.cr
Dependencies
Runtime Dependencies
README
crystal_lucky
This is a project written using Lucky. Enjoy!
Setting up the project
- Install required dependencies
- Update database settings in
config/database.cr - Run
script/setup - Run
lucky devto start the app
Learning Lucky
Lucky uses the Crystal programming language. You can learn about Lucky from the Lucky Guides.
Installation
- Installation of Crystal is done using asdf version manager. At the time this is written, Lucky framework only supports Crystal v0.36.1, not v1.0.x.
- Overmind is used as the process manager.
API
$ curl -X POST -H 'content-type: application/json' -d '{"user":{"email": "john.doe@mail.com", "password": "123456", "password_confirmation":"123456"}}' http://127.0.0.1:5000/api/sign_ups
{"token":<generated_token>}%
# Visit
http://127.0.0.1:5000/api/me?auth_token=<generated_token>
Creating a new model
$ lucky gen.model Post
$ lucky db.migrate
API
$ curl -X POST -H 'content-type: application/json' -d '{"post":{"body": "hello world"}}' http://127.0.0.1:5000/api/posts
{"id":"7cb6e887-cce5-4584-a7e0-fbbecaaf312e","body":"hello world"}%
# Visit
http://127.0.0.1:5000/api/posts
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Jul 21, 2021
- Crystal
0.36.1- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/alextanhongpin/crystal-lucky
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 15, 2026
- Synced
- Aug 15, 2026
- Versions
- 1