Skip to content

wickathou/mcv-blog

Repository files navigation

logo

Blog app on Rails

📗 Table of Contents

📖 [BlogApp]

[Blog App] is a blogging app, designed to rival Twitter (lol). It is built with Ruby on Rails and uses the MVC architecture. It is a project for the Microverse Ruby on Rails curriculum.

🛠 Built With

Tech Stack

Key Features

  • [Users can create posts, add likes and create comments to posts]
  • [MVC architecture]

(back to top)

💻 Getting Started

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

Prerequisites

In order to run this project you need:

Setup

Clone this repository to your desired folder:

git clone git@github.com:wickathou/mcv-blog.git

Install

Install the required gems bundle install

Create the database by running the command rails db:create

Then run the migrations by setting up the db rails db:setup

Then seed the database using rails db:seed

Run tests

Run the tests using rspec

Usage

Then run the rails server

rails s

API request examples

To fetch all users: curl -H 'Content-Type: application/json' -H 'Accept: application/json' -X GET http://localhost:3000/users

To fetch all comments to a post: curl -H 'Content-Type: application/json' -H 'Accept: application/json' -X GET http://localhost:3000/posts/9/comments/

To post a comment to a post: curl -H 'Content-Type: application/json' -H 'Accept: application/json' -X POST -d '{"comment": {"text":"something", "user_id":9}}' http://localhost:3000/users/9/posts/9/comments/

And now you should be able to see the project running on localhost:3000

(back to top)

👥 Authors

👤 Javier Hernandez

👤 Anshuman Singh Negi

(back to top)

🔭 Future Features

  • [Add and delete posts]
  • [Like posts]

(back to top)

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

(back to top)

⭐️ Show your support

Leave a ⭐️ if you like this project!

(back to top)

🙏 Acknowledgments

(back to top)

📝 License

This project is GNU licensed.

(back to top)

About

A blog application created using Rails

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors