ai4cr_examples_lucky v0.1.0

ai4cr_examples_lucky

This is a project written using Lucky. Enjoy!

Setting up the project

Postgres Setup

See:

Un-Dockerized

  1. Install required dependencies
  2. Update database settings in config/database.cr
  3. Run script/setup
  4. Run lucky dev to start the app

Dockerized

## In One terminal:

# docker-compose build
./bin/acu/dc-build

# docker-compose up
./bin/acu/dc-up

## In another terminal:
# docker-compose run app sh
./bin/acu/dc-run-sh

## In the compose terminal:
# shards install

... then:

  1. Update database settings in config/database.cr
  2. Run script/setup
  3. Run lucky dev to start the app

NOTE: When re-building the docker container, postgress has hold of some files as root, so you have to re-acquire ownership...

# Acquire 'tmp/db' folder and remove it
bin/acu/pg-acquire

Testing

shards

### Learning Lucky

Lucky uses the [Crystal](https://crystal-lang.org) programming language. You can learn about Lucky from the [Lucky Guides](https://luckyframework.org/guides/getting-started/why-lucky).
Repository

ai4cr_examples_lucky

Owner
Statistic
  • 1
  • 0
  • 4
  • 0
  • 6
  • almost 4 years ago
  • December 25, 2020
License

Links
Synced at

Mon, 25 Nov 2024 00:40:22 GMT

Languages