{"id":15936286,"url":"https://github.com/vjousse/lucky-blog","last_synced_at":"2025-04-03T19:44:17.751Z","repository":{"id":55136510,"uuid":"297618817","full_name":"vjousse/lucky-blog","owner":"vjousse","description":"A Blog engine using Crystal and the Lucky Framework","archived":false,"fork":false,"pushed_at":"2022-01-06T07:25:50.000Z","size":73282,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-09T08:16:55.741Z","etag":null,"topics":["crystal","lucky-framework"],"latest_commit_sha":null,"homepage":"https://vincent.jousse.org","language":"Crystal","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vjousse.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-22T10:47:52.000Z","updated_at":"2023-07-06T13:44:34.000Z","dependencies_parsed_at":"2022-08-14T13:01:02.532Z","dependency_job_id":null,"html_url":"https://github.com/vjousse/lucky-blog","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vjousse%2Flucky-blog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vjousse%2Flucky-blog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vjousse%2Flucky-blog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vjousse%2Flucky-blog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vjousse","download_url":"https://codeload.github.com/vjousse/lucky-blog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247070780,"owners_count":20878581,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["crystal","lucky-framework"],"created_at":"2024-10-07T04:20:55.239Z","updated_at":"2025-04-03T19:44:17.723Z","avatar_url":"https://github.com/vjousse.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vince's\n\nThis is a project written using [Lucky](https://luckyframework.org). Enjoy!\n\n## Setting up the project\n\n1. [Install required dependencies](https://luckyframework.org/guides/getting-started/installing#install-required-dependencies)\n1. Update database settings in `config/database.cr`\n1. Run `script/setup`\n1. Run `lucky dev` to start the app\n\n\n## Docker\n\n### For dev purposes\n\nBuild images\n\n    docker-compose build\n\nStart containers\n\n    docker-compose up\n\nInit the app/database for the first time\n\n    docker-compose exec web ./script/setup\n\nLoad posts\n\n    docker-compose exec web lucky load_posts -l fr -d content/fr/\n\nStart dev server\n\n    docker-compose exec web lucky dev\n\nLaunch tests\n\n    docker-compose exec web crystal spec\n\nReset test database (after migradion)\n\n    docker-compose exec --env LUCKY_ENV=test web lucky db.drop\n\n### For production and deploy\n\nBuild the images\n\n    docker-compose -f docker-compose-prod.yml build\n\nTweak `.env.production` values\n\n\n    LUCKY_ENV=production\n    SECRET_KEY_BASE=eQ314uYO30d0OtNnWqAtsuXPZmD70Rc3xTY0AJrjbt4=\n    SEND_GRID_KEY=unused\n    DATABASE_URL=postgresql://postgres:postgres@db/vinces_production\n    HOST=0.0.0.0\n    PORT=5001\n    APP_DOMAIN=https://vincent.jousse.org\n\nRun the images\n\n    docker-compose -f docker-compose-prod.yml up\n\nCreate the production database\n\n    docker-compose exec db createdb -U postgres vinces_production\n\nRun the migrations\n\n    docker-compose exec web crystal run tasks.cr -- db.migrate\n\nLoad the posts\n\n    docker-compose exec web crystal run tasks.cr -- load_posts -l fr -d content/fr/\n\n## Deploying the project\n\n1. Make a build release `crystal build --release src/start_server.cr`\n1. Load your posts `DATABASE_URL=postgresql://username:password@127.0.0.1/vinces_production crystal run tasks.cr -- load_posts -l fr -d content/fr/`\n1. Build the assets `yarn prod`\n1. Starts your server with `./start_server`\n\nYou should definitively have a look at the [official documentation to deploy the project](https://www.luckyframework.org/guides/deploying/ubuntu).\n\n## Learning Lucky\n\nLucky 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).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvjousse%2Flucky-blog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvjousse%2Flucky-blog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvjousse%2Flucky-blog/lists"}