https://github.com/tinawebdev/webbit
A Reddit clone built with Ruby on Rails
https://github.com/tinawebdev/webbit
actiontext rails rails6 tailwindcss
Last synced: about 1 month ago
JSON representation
A Reddit clone built with Ruby on Rails
- Host: GitHub
- URL: https://github.com/tinawebdev/webbit
- Owner: tinawebdev
- Created: 2020-03-31T12:01:30.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-19T21:41:39.000Z (over 2 years ago)
- Last Synced: 2025-02-14T07:32:42.529Z (3 months ago)
- Topics: actiontext, rails, rails6, tailwindcss
- Language: Ruby
- Homepage:
- Size: 1.55 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 29
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Webbit
A nearly full-feature Reddit clone built with Ruby on Rails. This app is the result of a course called Hello Rails found at [hellorails.io](https://hellorails.io/)
## Demo
[mywebbit.herokuapp.com](https://mywebbit.herokuapp.com/)## Versions used
* ruby '2.6.3'
* rails '6.0.2.2'## Modeling
Model | Description
----------------|----------------------
User | Focused on the user
Submission | The user authors. Has different types (image/video, text, link)
Community | The category the submission belongs to
Comment | A response given to the submission from another user or the current user
Subscription | Not be confused with billing of any type. A user can subscribe and unsubscribe to a community## Installation
To use the code:
1. Open Terminal and change the current working directory to the location where you want the cloned directory to be made.
2. Download the repository using the [instruction](https://help.github.com/en/github/creating-cloning-and-archiving-repositories/cloning-a-repository).
3. In the command line go to the directory with the files downloaded.
```
cd webbit
```4. Install all necessary gems:
```
bundle install
```5. Install all the dependencies listed within package.json in the local node_modules folder:
```
yarn install
```6. To run migrations:
```
bundle exec rails db:migrate
```7. To load the data from db/seeds.rb into the database:
```
bundle exec rails db:seed
```