{"id":16323604,"url":"https://github.com/mefellows/sinatra-angular-seed","last_synced_at":"2025-05-14T14:35:02.627Z","repository":{"id":17556012,"uuid":"20358936","full_name":"mefellows/sinatra-angular-seed","owner":"mefellows","description":"Sinatra and Angular Seed project: Get started with Sinatra-ng on Heroku ASAP!","archived":false,"fork":false,"pushed_at":"2014-06-08T09:10:35.000Z","size":232,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"feature/alpha","last_synced_at":"2025-02-17T04:24:54.990Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/mefellows.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":"2014-05-31T15:47:52.000Z","updated_at":"2014-06-08T09:10:35.000Z","dependencies_parsed_at":"2022-08-25T18:01:10.161Z","dependency_job_id":null,"html_url":"https://github.com/mefellows/sinatra-angular-seed","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/mefellows%2Fsinatra-angular-seed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mefellows%2Fsinatra-angular-seed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mefellows%2Fsinatra-angular-seed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mefellows%2Fsinatra-angular-seed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mefellows","download_url":"https://codeload.github.com/mefellows/sinatra-angular-seed/tar.gz/refs/heads/feature/alpha","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254160636,"owners_count":22024574,"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":[],"created_at":"2024-10-10T22:55:14.184Z","updated_at":"2025-05-14T14:35:02.601Z","avatar_url":"https://github.com/mefellows.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sinatra + Angular Seed\n\nGet started hacking Sinatra and Angular on Heroku ASAP.\n\nOut of the box, you get:\n\n* Opinionated default setup of a Sinatra Web Application\n* API with CORS, Sockets and JSON Support\n* CLI Support\n* Heroku configuration\n* Unit Tests\n* Standard Gem setup\n\n# Getting started\n\n## Pull down the seed and start the app\n\n    git clone https://github.com/mefellows/sinatra-angular-seed.git\n    cd sinatra-angular-cd\n    echo 'PORT=8080' \u003e .env \u0026\u0026 bundle install\n    foreman start\n\nTest that we're up:\n\n    curl  \"http://localhost:8080/status\"\n\nAll going to plan, you should see ```alive``` indicating the app is running.\n\nSetup the UI\n\n    cd public\n    npm install \u0026\u0026 bower install \u0026\u0026 grunt\n    grunt serve\n    \nView your Web front end by visiting ```http://localhost:8080/``` in your favourite web browser.\n\nYou will want to change the name of files/folders from 'placeholder' to the name of your app. If you have the 'rename' command, this is the quickest way forward (```brew install rename``` if you don't have it and are running Mac OSX). Create and run this little helper:\n\nvi rename.sh\n\n    #!/bin/bash\n    \n    find . -type f -iname '*placeholder*' | grep -v '\\.git' | xargs rename 's@placeholder@\u003cyour app\u003e@gi' {}\n    find . -type d -iname '*placeholder*' | grep -v '\\.git' | xargs rename 's@placeholder@\u003cyour app\u003e@gi' {}\n    find . -type f | grep -v '\\.git' | xargs sed -i 's/placeholder/\u003cyour app\u003e/g'\n    find . -type f | grep -v '\\.git' | xargs sed -i 's/Placeholder/\u003cyour app in UpperCamelCase\u003e/g'\n\nAdd execute perms\n\n    chmod +x rename.sh\n    ./rename.sh\n    \nAlternatively, you can change them manually yourself.\n\n## Testing\n\n    rake\n\n## Deploying to Heroku\n\nYou will of course need to create an app in Heroku before deployment, a typical setup would look like:\n\n    heroku app:create \u003cmy awesome app\u003e\n    heroku config:set BUILDPACK_URL=https://github.com/ddollar/heroku-buildpack-multi.git\n    heroku labs:enable websockets\n    git push heroku master\n\n## Logging\n\nBy default, we log to the stdout stream (as per Heroku's guide: ). If you'd like to change this behaviour, set the ```LOG_OUTPUT_FILENAME``` environment variable:\n\n\n    $ bin/placeholder  magic http://www.onegeek.com.au/\n     INFO placeholder.placeholdercommand: Magic happens!\n    $ export LOG_OUTPUT_FILENAME='placeholder.log'\n    $ bin/placeholder  magic http://www.onegeek.com.au/\n    $ cat placeholder.log\n     INFO placeholder.placeholdercommand: Magic happens!\n\n# TODO\n\n* Yeoman Generator: This might eventually turn into a Yeoman generator, meaning an interactive CLI will guide you through a setup instead of a static clone.\n* Docker/Puppetize: For deployment to a non-Heroku environment, Puppet and Docker are popular alternatives.\n\n# Acknowledgements\n\n* Sinatra\n* Eventmachine\n* Foreman\n* Angular\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmefellows%2Fsinatra-angular-seed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmefellows%2Fsinatra-angular-seed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmefellows%2Fsinatra-angular-seed/lists"}