Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/machuu/railstutorial-sample_app
https://github.com/machuu/railstutorial-sample_app
heroku rails-tutorial ruby tutorial
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/machuu/railstutorial-sample_app
- Owner: machuu
- Created: 2017-02-08T04:34:49.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-20T19:10:00.000Z (about 7 years ago)
- Last Synced: 2024-10-17T09:44:21.021Z (about 1 month ago)
- Topics: heroku, rails-tutorial, ruby, tutorial
- Language: Ruby
- Homepage: http://sampleapp.hoover.ml
- Size: 280 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ruby on Rails Tutorial sample application
Last deploy: [Heroku: Sample App](https://gentle-coast-14233.herokuapp.com/)This is the sample application for
[*Ruby on Rails Tutorial:
Learn Web Development with Rails*](http://www.railstutorial.org/)
by [Michael Hartl](http://www.michaelhartl.com/).## License
All source code in the [Ruby on Rails Tutorial](http://railstutorial.org/)
is available jointly under the MIT License and the Beerware License. See
[LICENSE.md](LICENSE.md) for details.## Getting started
### Cloud 9 Prep
Some extra steps to get setup in a fresh Cloud 9 workspaceInstall necessary packages
```
rvm install 2.3.0
gem install rails -v 5.1.2
```### Heroku
Log in to Heroku
```
$ heroku login
Enter your Heroku credentials:
Email: [email protected]
Password: ************
Logged in as [email protected]
```Add existing Heroku remote to git config
**.git/config**
```
.
.
[remote "heroku"]
url = https://git.heroku.com/.git
fetch = +refs/heads/*:refs/remotes/heroku/*
.
.
```## Remaining config
To get started with the app, clone the repo and then install the needed gems:
```
$ bundle install --without production
```Next, migrate the database:
```
$ rails db:migrate
```Finally, run the test suite to verify that everything is working correctly:
```
$ rails test
```If the test suite passes, you'll be ready to run the app in a local server:
```
$ rails server
```For more information, see the
[*Ruby on Rails Tutorial* book](http://www.railstutorial.org/book).