{"id":13606013,"url":"https://github.com/mikegehard/sinatra-postgres-starter-app","last_synced_at":"2025-04-12T05:35:34.744Z","repository":{"id":15994331,"uuid":"18737549","full_name":"mikegehard/sinatra-postgres-starter-app","owner":"mikegehard","description":"This is a skeleton of an application that can be used to quickly bootstrap a Postgres backed, Sinatra application.","archived":false,"fork":false,"pushed_at":"2014-04-24T20:42:55.000Z","size":269,"stargazers_count":16,"open_issues_count":0,"forks_count":21,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-10T17:57:59.254Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mikegehard.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-13T19:19:12.000Z","updated_at":"2024-05-20T19:15:58.000Z","dependencies_parsed_at":"2022-08-30T09:42:15.108Z","dependency_job_id":null,"html_url":"https://github.com/mikegehard/sinatra-postgres-starter-app","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/mikegehard%2Fsinatra-postgres-starter-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikegehard%2Fsinatra-postgres-starter-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikegehard%2Fsinatra-postgres-starter-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikegehard%2Fsinatra-postgres-starter-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikegehard","download_url":"https://codeload.github.com/mikegehard/sinatra-postgres-starter-app/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248524733,"owners_count":21118613,"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-08-01T19:01:05.195Z","updated_at":"2025-04-12T05:35:34.489Z","avatar_url":"https://github.com/mikegehard.png","language":"CSS","readme":"# Sinatra template application\n\nThis application can be used as a starting point for a [Postgres](http://www.postgresql.org/)\ndatabase backed, via [Sequel](http://sequel.jeremyevans.net/), application that uses\n[Sinatra](http://www.sinatrarb.com/). It can be deployed to [Heroku](https://www.heroku.com/).\n\nThere are a few things you need to change for your application:\n\n1. Change `scripts/create_databases.sql` to create both your development and test databases.\n1. Copy the `.env.example` file to `.env`.\n1. Change the `.env` file to include your database connection strings for both your development\nand test databases. This file is ignored by git (see .gitignore) to protect your secrets\nfrom the outside world.\n1. Add your migrations to the `migrations` folder. Once you have one migration there, you can\ndelete the `.gitsave` file. You should also uncomment the line in `spec/spec_helper.rb` so that\nyour databases will be cleaned up between test runs.\n\n## Development\n1. `bundle install`\n1. Create a database by running `psql -d postgres -f scripts/create_databases.sql`\n1. Run the migrations in the development database using `rake db:migrate`. If you would\nlike to migrate to a specific version you can do so using this rake task. Run `rake -T` for\ndetails.\n1. Run the migrations in the testing database using `RACK_ENV=test rake db:migrate`. \n1. `rerun rackup`\n    * running rerun will reload app when file changes are detected\n1. Run tests using `rspec`. The tests will clean up the database before each test run.\n\n## Migrations on Heroku\nTo run the migrations on heroku, run `heroku run 'rake db:migrate'`. If you\ndo not have a Heroku configuration variable named DATABASE_URL, then you will need to create one.\n","funding_links":[],"categories":["CSS"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikegehard%2Fsinatra-postgres-starter-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikegehard%2Fsinatra-postgres-starter-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikegehard%2Fsinatra-postgres-starter-app/lists"}