- 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.
- To install and run this app on your local machine, follow these steps:
Copy code
$ git clone https://github.com/RemmyKyalo/CodeOverflow.git
Copy code
$ bundle install
Copy code
$ rails db:create
$ rails db:migrate
Copy code
$ rails server
- The server is now running on console http://localhost:5000.
-
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).
- Ruby on Rails for backend
- React for frontend
- Redux
- PostgreSQL
- ThunderClient
- Sessions
- Heroku
- If you want to contribute to Codeoverflow, please follow these steps:
- 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.
- Codeoverflow is released under the MIT License.