A basic Ruby on Rails app for sharing links, commenting, and voting.
-
Requirements:
- Ruby
- Rails
- SQLite3
-
Setup:
bundle install bin/rails db:create db:migrate -
Run the App:
bin/rails serverVisit http://localhost:3000
-
Run Tests:
bin/rails test
- User authentication
- Share links
- Comment on links
- Upvote/downvote links
erDiagram
User ||--o{ Link: creates
User ||--o{ Comment: creates
Link ||--o{ Comment: has
User {
string id PK
string email
string password
}
Link {
string id PK
string user_id FK
string title
string url
}
Comment {
string id PK
string user_id FK
string link_id FK
string body
}