Skip to content

MilesUpHQ/reddit-clone-rails

Repository files navigation

Reddit Clone Rails

Reddit

Welcome to Reddit Clone App using Rails

Requirments

* Github
* Ruby 3.0.4
* Rails 6.1.7
* node 12.13.0
* npm 8.19.2
* yarn 1.22.19

Installation

  1. Checkout to your Repository(Directory)
  $ git clone https://github.com/MilesUpHQ/reddit-clone-rails.git
  1. Go to the Directory in Terminal
  $ cd reddit_clone
  1. Install the Pre requisite
  • Install all the Gem given in Gem.rb file
  • Install Bootstrap and other js libraries as node modules using npm
  $ bundle install  # install dependent gems
  $ npm install     # install dependenties
  $ yarn install    # for generating dependent manifest.js
  $ yarn add toastr # install toastr js for flash notice
  1. Setup PostgreSQL Database
  $ apt-get install postgresql-12
  For System Startup Server start
  $ sudo systemctl enable postgresql
  

Reference: Database Setup

  1. Create and Migrate Database
  $ rails db:create
  $ rails db:migrate
  1. Add .env file at root directory path
MAILGUN_USERNAME=xxxx
MAILGUN_PASSWORD=xxxx
MAILGUN_DOMAIN=xxxx

Note : To make you authorized SMTP connection account contact Tushar R Vasanthakumar A Mithun L Sowndar K Srinandhini M

  1. Seed Accounts, Communities and Posts
  $ rails db:seed
  1. Start the Rails Server
  $ rails server

And now you can vist the site with the URL http://localhost:3000 If you want to add categories and access admin page vist the site with the URL http://localhost:3000/admin

ISSUES FACED DURING INSTALLATION :

If you face Issues Like Javascript error install Yarn

$ sudo yarn

If There is a error in login or signup - The Error is due to ENV file's Authorized Email Please contact the Email's above for authorizing Your Mail Id and Get authentication Token to your mail

About

Rails reddit clone app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 8