Skip to content

abmAsadullah/micro-reddit

Repository files navigation

README

Micro-reddit

  • In this project we:
    • Create 3 models User, Post, Comment
    • We created associations
    • Also made validations

Built with

  • Ruby on Rails

Getting Started

Prerequisites

  • Ruby ~> [2.7.1]
  • Ruby on Rails ~> [6.0.3.4]
  • Bundler ~> [2.1.4]

Setup

You can simply run the following command into your own terminal to clone the repository https://github.com/abmAsadullah/micro-reddit.git.

Install

After you clone the repo, make sure you're in the root directory of the project. Now you should run bundle install to install all the required dependencies.

Usage

  • Run rails console.
  • If you want go see all users User.all
  • Create new user User.create(username:REQUIRED, email:REQUIRED)
  • Create new post Post.create(title:REQUIRED, body:REQUIRED)
  • Create new comment Comment.create(body:REQUIRED, user_id, post_id)

Author 1

👤 David Leonardo Castillo Riaño

Author 2

👤 A B M Asadullah

🤝 Contributing

Contributions, issues and feature requests are welcome! Start by:

  • Forking the project
  • Cloning the project to your local machine
  • cd into the project directory
  • Run git checkout -b your-branch-name
  • Make your contributions
  • Push your branch up to your forked repository
  • Open a Pull Request with a detailed description to the development branch of the original project for a review

Show your support

Give a ⭐️ if you like this project

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published