sadaf-Daneshgar / blogapp

The Blog app will be a classic example of a blog website. You will create a fully functional website that will show the list of posts and empower readers to interact with them by adding comments and liking posts.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ“— Table of Contents

πŸ“– Rail Blog App

Rail-blog-app: Is a blog app built with Ruby on Rails. It allows users to create articles and comment on them. It also allows users to sign up and sign in to the app.

πŸ›  Built With

Tech Stack

Ruby on Rails
  • Ruby
  • Ruby

(back to top)

Key Features

  • Ruby on Rails
  • Creating a data model
  • Functional website
  • Unit testing
  • Database
  • Authentication

(back to top)

πŸ’» Getting Started

To get a local copy up and running, follow these steps.

Prerequisites

You need the following tools be installed in your computer:

Setup

  1. Download the Zip file or Clone the repo with:
git clone https://github.com/sadaf-Daneshgar/blogapp.git
  1. To access the project directory
cd rail-blog-app

Install

bundle install
rails db:migrate

Run the seeder

rails db:seed

Run the App

rails s
Check http://localhost:3000/ in your browser

Run Test

  • To run models tests
rails db:migrate RAILS_ENV=test
rspec

API Usage

  • To use the API version make sure to set the header Accept to application/json and the header Content-Type to application/json for all requests.

refer to this discussion for more details API

  • To create a comment send a POST request to /users/:user_id/posts/:post_id/comments with http authorization header set to YOUR_API_TOKEN which you can get from your profile page. The body of the request should be a JSON object in the following format:
{
  "text": "comment content"
}

(back to top)

πŸ‘₯ Authors

πŸ‘€ Sadaf Daneshgar

πŸ‘€ Second Authors

πŸ‘€ Mohamed Sabry

(back to top)

πŸ”­ Future Features

  • Validations and Model specs.
  • Add more features to the app.
  • Add more tests.
  • Add more styling.
  • Add more features to the app.
  • Add more tests.

(back to top)

🀝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check issues page.

⭐️ Show your support

If you like this project, kindly drop a start ⭐️ for the repository;

(back to top)

πŸ™ Acknowledgments

I would like to thank the following individuals and organizations for their contribution to this project.

  • I would like to express my heartfelt gratitude to Microvere for the invaluable learning experience they have provided.

(back to top)

πŸ“ License

This project is MIT licensed.

(back to top)

About

The Blog app will be a classic example of a blog website. You will create a fully functional website that will show the list of posts and empower readers to interact with them by adding comments and liking posts.

License:MIT License


Languages

Language:Ruby 72.0%Language:HTML 19.7%Language:Batchfile 2.8%Language:CSS 2.1%Language:Dockerfile 2.0%Language:JavaScript 1.2%Language:Shell 0.2%