- About
- Features
- Live Demo
- Presentation
- Built with
- Getting started
- Authors
- Contributing
- Show your support
- Acknowledgements
- License
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:
- register and login to the application.
- follow or unfollow other users.
- create an opinion.
- view all opinions.
- like or dislike the opinion.
- view other user profile and their follower and following.
This project is hosted on heroku.
I have explained the proeject with its features in this video presenatation
- Ruby v2.7.1
- Rails v6.1.0
- postgresql v12.6
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
directorycd 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
orvim
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
- GitHub: @dipbazz
- Twitter: @dipbazz
- LinkedIn: Dipesh Bajgain
Contributions, issues, and feature requests are welcome!
Give a ⭐️ if you like this project!
-
Cover image used in profile page is by eberhard grossgasteiger on Unsplash
-
Profile image used as user profile is by Ayo Ogunseinde on Unsplash
-
Icons used for this project is from Font awesome
This project is MIT licensed.