Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eriknguyen/rails-twitter-lite
Sample app to learn Ruby on Rails
https://github.com/eriknguyen/rails-twitter-lite
rails rails-tutorial ruby ruby-on-rails
Last synced: 15 days ago
JSON representation
Sample app to learn Ruby on Rails
- Host: GitHub
- URL: https://github.com/eriknguyen/rails-twitter-lite
- Owner: eriknguyen
- Created: 2018-04-25T07:46:41.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-05-09T06:42:48.000Z (over 6 years ago)
- Last Synced: 2024-10-17T09:42:51.949Z (about 1 month ago)
- Topics: rails, rails-tutorial, ruby, ruby-on-rails
- Language: Ruby
- Size: 297 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ruby on Rails Tutorial sample application
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/).## Advanced login
#### 1. Plan for persistent sessions
1. Create random string of digits for use as a remember token
2. Place the token in the browser cookies with long expiration
3. Save the hash digest to db
4. Place an encrypted version of user id in browser cookies
5. When presented with a cookie containing user_id, find user in db => compare remember token cookie with associated hash digest from db## TODO
#### Chap 10:
1. Test for friendly forwarding only forward to the given URL the first time
2. Integration test for all layout links (10.3.1)## 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
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).