/cflow

Primary LanguageRuby

Codeoverflow

  • Codeoverflow is a clone of StackOverflow, built with Ruby on Rails and PostgreSQL. It allows members of the Moringa School organization to ask questions and receive answers from their peers.

Installation

  • To install and run this app on your local machine, follow these steps:

Clone the repository:

Copy code

$ git clone https://github.com/RemmyKyalo/CodeOverflow.git

Install the required dependencies by running:

Copy code

$ bundle install

Create the database and run migrations:

Copy code

$ rails db:create
$ rails db:migrate

Run the app:

Copy code

$ rails server

Schema

ERD Link

description of image

  • The database schema is defined in db/schema.rb. Here is an overview of the schema:

  • users: contains information about registered users such as display name, email, and password digest.

  • questions: contains information about questions posted by users such as title, body, and number of views.

  • answers: contains information about answers posted by users such as description and the corresponding question.

  • tags: contains information about tags that can be assigned to questions.

  • taggings: links tags to questions.

  • votes: allows users to vote on posts (questions and answers).

Tech Stack

  • Ruby on Rails for backend
  • React for frontend
  • Redux
  • PostgreSQL
  • ThunderClient
  • Sessions
  • Heroku

Contributing

  • If you want to contribute to Codeoverflow, please follow these steps:

Fork the repository.

  • Create a new branch for your feature or bug fix: git checkout -b my-new-feature.
  • Make changes and commit them: git commit -am 'Add some feature'.
  • Push to the branch: git push origin my-new-feature.
  • Submit a pull request.

Developers Github's

License

  • Codeoverflow is released under the MIT License.