Playing with Crystal and the Amber framework, because FOMO.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
db/migrations
node_modules
public
spec
src
.amber.yml
.gitignore
.travis.yml
Dockerfile
Procfile
README.md
docker-compose.yml
package.json
shard.lock
shard.yml

README.md

amber-practice

A new project using Amber Framework

Installation

Install back-end and front-end dependencies.

shards install
npm install

Configure the config/environments/development.yml and set the database_url with your credentials to your database.

Then:

amber db create migrate

Usage

Development

To build crystal files:

amber watch

To build assets:

npm run watch

Production

To setup AMBER_ENV:

export AMBER_ENV=production

To build a production release:

shards build --production --release amber-practice

To build production assets:

npm run release

To use encrypted enviroment settings see documentation

Docker Compose

This will start an instance of postgres, migrate the database, and launch the site at http://localhost:3000

docker-compose up -d

To view the logs:

docker-compose logs -f

Note: The Docker images are compatible with Heroku.

Contributing

  1. Fork it ( https://github.com/your-github-user/amber-practice/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors