ai4cr_examples_lucky v0.1.0
ai4cr_examples_lucky
This is a project written using Lucky. Enjoy!
Setting up the project
Postgres Setup
See:
- Start/stop postgres server
- Change Password
Un-Dockerized
- Install required dependencies
- Update database settings in
config/database.cr
- Run
script/setup
- 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:
- Update database settings in
config/database.cr
- Run
script/setup
- 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