https://github.com/dcts/sinatra-boilerplate
boilerplate code for a basic ruby sinatra app.
https://github.com/dcts/sinatra-boilerplate
Last synced: 12 months ago
JSON representation
boilerplate code for a basic ruby sinatra app.
- Host: GitHub
- URL: https://github.com/dcts/sinatra-boilerplate
- Owner: dcts
- Created: 2019-08-28T19:45:05.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-01T01:49:29.000Z (over 3 years ago)
- Last Synced: 2025-03-06T11:13:17.267Z (over 1 year ago)
- Language: Ruby
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sinatra Boilerplate
- Simple [Sinatra Webapp](http://sinatrarb.com/)
- follows MVC Pattern
- no Database
- ready to deploy on Heroku
### Running Locally
- to run the app on localhost, clone this repo
- `cd` into the directory
- run `ruby lib/app.rb` and a local server will be started at port 4567
- simply open `localhost:4567` in any browser
### Deployment on Heroku
Be sure to have the following:
- config.ru
```bash
# login to heroku
heroku login
# create new heroku app (if not already one existant)
heroku create
# be sure that this is a git repository
git init # if not initialized
git remote -v # show all remote
git remote add heroku # git.heroku.com/YOUR-APP-NAME...
# deploy
git push heroku master
```
by dcts / v 0.0