{"id":20972524,"url":"https://github.com/ericmbouwe/micro-reddit","last_synced_at":"2025-03-13T08:27:36.051Z","repository":{"id":40093769,"uuid":"268557947","full_name":"EricMbouwe/Micro-reddit","owner":"EricMbouwe","description":"Micro-reddit is a project which describes associations between data structures necessary to support user's posts submissions and comments on those posts","archived":false,"fork":false,"pushed_at":"2023-01-19T19:14:10.000Z","size":1159,"stargazers_count":3,"open_issues_count":32,"forks_count":0,"subscribers_count":2,"default_branch":"development","last_synced_at":"2025-01-20T05:04:32.836Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EricMbouwe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-01T15:19:29.000Z","updated_at":"2020-08-14T13:24:00.000Z","dependencies_parsed_at":"2023-02-11T18:00:24.446Z","dependency_job_id":null,"html_url":"https://github.com/EricMbouwe/Micro-reddit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EricMbouwe%2FMicro-reddit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EricMbouwe%2FMicro-reddit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EricMbouwe%2FMicro-reddit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EricMbouwe%2FMicro-reddit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EricMbouwe","download_url":"https://codeload.github.com/EricMbouwe/Micro-reddit/tar.gz/refs/heads/development","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243368160,"owners_count":20279733,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T04:08:38.890Z","updated_at":"2025-03-13T08:27:36.009Z","avatar_url":"https://github.com/EricMbouwe.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Micro-reddit\n\n\u003c!--\n*** Thanks for checking out this README Template. If you have a suggestion that would\n*** make this better, please fork the repo and create a pull request or simply open\n*** an issue with the tag \"enhancement\".\n*** Thanks again! Now go create something AMAZING! :D\n--\u003e\n\n\u003c!-- PROJECT SHIELDS --\u003e\n\u003c!--\n*** I'm using markdown \"reference style\" links for readability.\n*** Reference links are enclosed in brackets [ ] instead of parentheses ( ).\n*** See the bottom of this document for the declaration of the reference variables\n*** for contributors-url, forks-url, etc. This is an optional, concise syntax you may use.\n*** https://www.markdownguide.org/basic-syntax/#reference-style-links\n--\u003e\n\n[![Contributors][contributors-shield]][contributors-url]\n[![Forks][forks-shield]][forks-url]\n[![Stargazers][stars-shield]][stars-url]\n[![Issues][issues-shield]][issues-url]\n\n\u003c!-- PROJECT LOGO --\u003e\n\u003cbr /\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/ericmbouwe/Micro-reddit\"\u003e\n    \u003cimg src=\"app/assets/images/microverse.png\" alt=\"Microverse Logo\" width=\"80\" height=\"80\"\u003e\n  \u003c/a\u003e\n  \n  \u003ch3 align=\"center\"\u003eMicro-reddit Application\u003c/h3\u003e\n  \n  \u003cp align=\"center\"\u003e\n    This project is part of the Microverse curriculum in Ruby On Rails course!\n    \u003cbr /\u003e\n    \u003ca href=\"https://github.com/ericmbouwe/Micro-reddit\"\u003e\u003cstrong\u003eExplore the docs »\u003c/strong\u003e\u003c/a\u003e\n    \u003cbr /\u003e\n    \u003cbr /\u003e\n    \u003ca href=\"https://github.com/ericmbouwe/Micro-reddit/issues\"\u003eReport Bug\u003c/a\u003e\n    \u003ca href=\"https://github.com/ericmbouwe/Micro-reddit/issues\"\u003eRequest Feature\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/p\u003e\n\nMicro-reddit is a project which describes associations between data structures necessary to support user's posts submissions and commenting on those posts  \n\n\u003c!-- TABLE OF CONTENTS --\u003e\n\n## Table of Contents\n\n- [About the Project](#about-the-project)\n- [Application Instructions](#application-instructions)\n- [System Requierments](#system-requierments)\n- [Configuration](#configuration)\n- [Database initialization](#database-initialization)\n- [Development](#development)\n- [Built With](#built-with)\n- [Contributors](#contributors)\n- [Acknowledgements](#acknowledgements)\n\n\u003c!-- ABOUT THE PROJECT --\u003e\n\n## About The Project  \n\n The project creates a SQLite database which holds the following tables:  \n    - User  \n      - Fields : name, created_at, update_at  \n    - Post  \n      - Fields : title, body, user_id, created_at, updated_at\n    - Comment  \n      - Fields : text, user_id, post_id, created_at, updated_at  \n    \n\nA User can have a number of Posts and each Post can have a number of Comments related to a User   \n\n\u003chr/\u003e\n\n\u003c!-- ABOUT THE PROJECT --\u003e\n\n## Application Instructions  \n\n  Examples that can be applied using the rails console\n\n  ### These will add a new user\n  ```\n    user = User.new\n    user.name = 'User 01'\n    user.save\n  ```\n  OR\n  ```\n    User.create(name: 'User 02')\n  ```\n\n  ### These will add a new post assotiated to the first user\n  ```\n    post = User.first.posts.new\n    post.title = 'Title of the first post'\n    post.body = 'Body of the first post'\n    post.save\n  ```\n  OR\n  ```\n    User.first.posts.create(title: 'Tile of the post', body: 'Body of the post')\n  ```\n\n  ### These will add a new comment assosiated to the first post of the first user and assosiated (the comment) to the last user\n  ```\n    com = User.first.posts.first.comments.new\n    com.text = 'Some comments'\n    com.user_id = User.last.id\n    com.save\n  ```\n  OR\n  ```\n    com = User.first.posts.first.comments.create(text: 'Some comments', user_id: User.last.id)\n  ```\n\n\u003chr/\u003e\n\n## System Requierments\n  - Ruby\n  - Rails\n  - Yarn\n\n## Configuration\n  - first, clone the project \n  Run \n  ```\n    git clone https://github.com/ericmbouwe/Micro-reddit.git\n  ```\n\n  - Install the necessary dependancies \n  Run \n  ```\n    bundle install\n    yarn install\n  ```\n\n\u003chr/\u003e\n\n## Database initialization\n  In order to add initial data to the database run  \n\n  ```\n    rails db:seed\n  ```\n  This will add 2 users, 2 posts and 4 comments  \n  \n\u003chr/\u003e\n\n## Development\n  * Clone the project\n  ```\n    https://github.com/ericmbouwe/Micro-reddit.git\n  ``` \n\u003chr/\u003e\n\n## Built With\n\nThis project was built using these technologies.\n\n  - Ruby version 2.6\n  - Ruby On Rails version 6.0\n\n\u003chr/\u003e\n\u003c!-- CONTACT --\u003e\n\n## Contributors\n\n:bust_in_silhouette: **Author_1**\n​## Eric Mbouwe\n\n- Github: [@ericmbouwe](https://github.com/ericmbouwe)\n- Twitter: [@ericmbouwe](https://twitter.com/ericmbouwe)\n- Linkedin: [Eric Mbouwe](https://www.linkedin.com/in/ericmbouwe/)\n- E-mail: ericmbouwe@gmail.com\n\n:bust_in_silhouette: **Author_2**\n​## Ioannis Kousis\n\n- Github: [@ioanniskousis](https://github.com/ioanniskousis)\n- Twitter: [@ioanniskousis](https://twitter.com/ioanniskousis)\n- Linkedin: [Ioannis Kousis](https://www.linkedin.com/in/ioannis-kousis-9a5051b4/)\n- E-mail: jgkousis@gmail.com\n\n\u003chr/\u003e\n\u003c!-- ACKNOWLEDGEMENTS --\u003e\n\n## Acknowledgements\n\n  - [Microverse](https://www.microverse.org/)\n  - [The Odin Project](https://www.theodinproject.com/)\n  - [Ruby Documentation](https://www.ruby-lang.org/en/documentation/)\n\n\u003c!-- MARKDOWN LINKS \u0026 IMAGES --\u003e\n\u003c!-- https://www.markdownguide.org/basic-syntax/#reference-style-links --\u003e\n\n[contributors-shield]: https://img.shields.io/github/contributors/ericmbouwe/Micro-reddit.svg?style=flat-square\n[contributors-url]: https://github.com/ericmbouwe/Micro-reddit/graphs/contributors\n[forks-shield]: https://img.shields.io/github/forks/ericmbouwe/Micro-reddit.svg?style=flat-square\n[forks-url]: https://github.com/ericmbouwe/Micro-reddit/network/members\n[stars-shield]: https://img.shields.io/github/stars/ericmbouwe/Micro-reddit.svg?style=flat-square\n[stars-url]: https://github.com/ericmbouwe/Micro-reddit/stargazers\n[issues-shield]: https://img.shields.io/github/issues/ericmbouwe/Micro-reddit.svg?style=flat-square\n[issues-url]: https://github.com/ericmbouwe/Micro-reddit/issues\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericmbouwe%2Fmicro-reddit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericmbouwe%2Fmicro-reddit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericmbouwe%2Fmicro-reddit/lists"}