GithubHelp home page GithubHelp logo

micro-reddit's Introduction

Building with active records

In this project we created the model part of our rails webpage using active records commands.

Code execution view:

screenshot

Built With

  • Ruby on Rails
  • VsCode
  • Active Records

Getting Started

To get a local copy up and running follow these simple example steps:

  • Clone this repository into your local machine.
  • Run the main file by typing this in your command line:
  $ rails console
  $ u = User.new(username: 'Admin', email: '[email protected]', password: '123456') #This is to create a User
  $ p = Post.new(title:'new title', body: 'New body', user_id: 1) #This is to create a post by a certain user
  $ c = Comment.new(body: 'New body', user_id: 1,  post_id: 1) #This is to create a comment by the user
  $ u.save
  $ p.save
  $ c.save
  $ u #To check the user content
  $ p #To check the post content
  $ c #To check the comment content

Validators

  • Rubocop
  • Stickler

Authors

πŸ‘€ Elias CastaΓ±eda

πŸ‘€ Abdulaziz Ali

🀝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

πŸ“ License

This project is MIT licensed.

micro-reddit's People

Contributors

eliasecasta avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

micro-reddit's Issues

17-08-2020 peer to peer review

Hi guys,

The project looks good so far, as you didn't have so much time to work on the project yet, there is not a lot to review.
Maybe have a look at the validates_associated method you're using in the model it seems unnecessary.

Other than that great start, keep doing a great job!

happy coding,
Team 122-the Manx

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.