blog-kemalyst v0.2.0
Blog using Crystal and Kemalyst
This is a sample application that shows how to build a crud application. This also provides an example of securing specific pages and leveraging the session to maintain authorization.
Installation
Create a pg database called blog
and configure the config/database.yml
to provide the credentials to access the table. Then:
shards update
crystal db/migrate.cr
Usage
To run the sample blog:
crystal build src/app.cr
./app
username: admin password: password
Docker and Docker Compose
The Docker scripts are compatible with Heroku Cedar Images.
You can skip the above and run:
docker-compose up -d
This will start an instance of postgres, migrate the database, run the specs, and launch the site at http://localhost:80
To view the logs:
docker-compose logs -f
Contributing
- Fork it ( https://github.com/[your-github-name]/kemalyst-blog/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- [drujensen] dru.jensen - creator, maintainer
Repository
blog-kemalyst
Owner
Statistic
- 5
- 1
- 0
- 0
- 2
- about 8 years ago
- April 4, 2016
License
MIT License
Links
Synced at
Thu, 21 Nov 2024 20:26:50 GMT
Languages