Twitter redesign project where users can post their opinions. Users can like and dislike others' opinions from their timelines. Logged-in users can follow and unfollow other users, and they can edit their profile.
This project is about creating a twitter redesign. The screenshot of homepage of the project is as below.
The ER diagram used to create the model for this project is as below:
The features of this project are, user can:
This project is hosted on heroku.
I have explained the proeject with its features in this video presenatation
If you intend to download the project, you will need to have
Ruby >= 2.7.1
For more information on how to install Ruby, follow this link
Ruby on rails >= 6.1.0
After ruby is installed run cmd gem rails
postgresql >= 12.6
For installing postgresql follow this link
Follow along the steps below to get a copy at your local machine.
Navigate to the directory where you want this project to clone and then clone it
git clone https://github.com/dipbazz/twitter_redesign.git
Navigate to the twitter_redesign
directory
cd twitter_redesign
Setup credentials for cloudinary account for image upload feature.
EDITOR="code --wait" bin/rails credentials:edit
use the choice of your editor in my case I am
using vscode to edit credentials file.
To use command line editor like nano
or vim
remove --wait
flag. Example:
EDITOR="nano" bin/rails credentials:edit
Update the credentials.yml.enc
with your details from cloudinary account.
CLOUDINARY:
NAME: your_cloudinary_name
API_KEY: cloudinary_key
API_SECRET: cloudinary_secret_key
install the gem package
bundle install
install yarn packages
yarn install
Create your database
rails db:create
Migrate the database
rails db:migrate
Start your server
rails server
Open browser at http://localhost:3000/
To test the project run the below cmd from your project root directory.
rspec
OR
rspec --format doc
If you want to populate initial user data instead of creating it for manual testing you can run
rails db:seed
which will create default user with username starting from user1
- user8
with password: Test@123
👤 Dipesh Bajgain
Contributions, issues, and feature requests are welcome!
Give a ⭐️ if you like this project!
Cover image used in profile page is by @armedshutter">eberhard grossgasteiger on Unsplash
Profile image used as user profile is by @eberhardgross">Ayo Ogunseinde on Unsplash
Icons used for this project is from Font awesome
This project is MIT licensed.