项目作者: dipbazz

项目描述 :
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.
高级语言: HTML
项目地址: git://github.com/dipbazz/twitter_redesign.git
创建时间: 2021-02-19T08:42:57Z
项目社区:https://github.com/dipbazz/twitter_redesign

开源协议:MIT License

下载


Twitter redesign

Table of contents


About

This project is about creating a twitter redesign. The screenshot of homepage of the project is as below.

Screenshot of form

The ER diagram used to create the model for this project is as below:

ER diagram for twitter redesign

Features

The features of this project are, user can:

  1. register and login to the application.
  2. follow or unfollow other users.
  3. create an opinion.
  4. view all opinions.
  5. like or dislike the opinion.
  6. view other user profile and their follower and following.

Live Demo

This project is hosted on heroku.

Live demo link

Presentation

I have explained the proeject with its features in this video presenatation

Built With

  • Ruby v2.7.1
  • Rails v6.1.0
  • postgresql v12.6

Getting Started

Prerequisites

If you intend to download the project, you will need to have

  1. Ruby >= 2.7.1

    For more information on how to install Ruby, follow this link

  2. Ruby on rails >= 6.1.0

    After ruby is installed run cmd gem rails

  3. postgresql >= 12.6

    For installing postgresql follow this link

Installation instructions

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

    1. git clone https://github.com/dipbazz/twitter_redesign.git
  • Navigate to the twitter_redesign directory

    1. cd twitter_redesign
  • Setup credentials for cloudinary account for image upload feature.

    1. 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:

    1. EDITOR="nano" bin/rails credentials:edit

    Update the credentials.yml.enc with your details from cloudinary account.

    1. CLOUDINARY:
    2. NAME: your_cloudinary_name
    3. API_KEY: cloudinary_key
    4. API_SECRET: cloudinary_secret_key
  • install the gem package

    1. bundle install
  • install yarn packages

    1. yarn install
  • Create your database

    1. rails db:create
  • Migrate the database

    1. rails db:migrate
  • Start your server

    1. rails server
  • Open browser at http://localhost:3000/

Testing

To test the project run the below cmd from your project root directory.

  1. rspec
  2. OR
  3. rspec --format doc

If you want to populate initial user data instead of creating it for manual testing you can run

  1. rails db:seed

which will create default user with username starting from user1 - user8 with password: Test@123

Authors

👤 Dipesh Bajgain

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

📝 License

This project is MIT licensed.