Coder Social home page Coder Social logo

zunairkhan811 / blog-app Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 159 KB

Blog app is a project that allow user to new users, posts, and adding likes and comments in rails framework. Blog API is also created alongwith API docs.

License: MIT License

Ruby 71.23% JavaScript 1.42% CSS 0.72% HTML 24.17% Batchfile 2.47%
api-rest apidoc cancancan postgresql rspec-testing rswag-specs ruby-on-rails bootstrap5 capybara-rspec bullet

blog-app's Introduction

**Blog App**

๐Ÿ“— Table of Contents

๐Ÿ“– [Blog App]

[Blog App] is based on Ruby Language and Rails framework.

๐Ÿ›  Built With

Tech Stack

Client
Server
PostGre SQL

Key Features

  • [App for blog, create post, add likes and comments]
  • [Blog API is also created. API links are accessible at https://localhost:3000/api-docs/index.html after running server by running rails s command in terminal]

(back to top)

๐Ÿ’ป Getting Started

Prerequisites

In order to run this project you need:

Setup

Clone this repository to your desired folder:

cd blog-app
git clone https://github.com/zunairkhan811/blog-app.git

Install

Install this project with:

bundle install

Usage

To run the project, execute the following command:

rail s

Run tests

Run:

rspec spec

Blog API

Blog API is also created:

User can list all user posts through the below link

http://localhost:3000/api/v1/users/:user_id/user_posts

User can see the list of all comments for a posts through the below link

http://localhost:3000/api/v1/posts/:post_id/post_comments

User can create a comment to a post with the following Url link:

http://localhost:3000/api/v1/posts/:post_id/post_comments

API Docs:

API docs are created and are accessible by following steps:

Run below command in the terminal

rails s

Paste this Link below in the Browser

http://localhost:3000/api-docs/index.html

(back to top)

๐Ÿ‘ฅ Author

๐Ÿ‘ค Muhammad Zunair khan

(back to top)

๐Ÿ”ญ Future Features

  • [Will add more features in the app]

(back to top)

๐Ÿค Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the repo

(back to top)

โญ๏ธ Show your support

If you like my project kindly comment or Follow me on LinkedIn, Twitter & twitter and always Your feedback will be really appreciated. Thanks!

(back to top)

๐Ÿ™ Acknowledgments

I would like to thank Microverse and my Code Reviewers.

(back to top)

โ“ FAQ (OPTIONAL)

  • [What is Blog App?]

    • [In this project, we will creating users, posts, and adding likes and comments in rails framework. Blog API is also created alongwith API docs.]

(back to top)

๐Ÿ“ License

This project is MIT licensed.

(back to top)

blog-app's People

Contributors

nilab-khwaja avatar zunairkhan811 avatar

Watchers

 avatar

blog-app's Issues

Create User Model

Create a user model with its attributes name and email and validation should be done on email. Also set associations for User model.

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.