Skip to content

PeteUgwu/Blog-App

Repository files navigation

📗 Table of Contents

📖 BLOG APP

In this project, we add some API endpoints to your Blog app. This will allow our app to be used in different ways, rather than just through our site - for example, a mobile app or a CLI application.

Key Features

  • Create an API endpoint to list all posts for a user.
  • Create an API endpoint to list all comments for a user's post.
  • Create an API endpoint to add a comment to a post. Remember that the owner of the comment is the user that makes it; it should not be set by passing a parameter.
  • Our API endpoints should receive JSON and respond JSON as well.

(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:

Install Ruby
Install Rails
Install Postgresql

Setup

Clone this repository to your desired folder:

 git clone https://github.com/PeteUgwu/Blog-App.git

Install

Install this project with:

  cd Blog-App
  bundle install
  Setup database credentials
  config/database.yml

Usage

To run the project, execute the following command:

rails server

Run tests

To run tests, run the following command:

rspec spec --format documentation

(back to top)

👥 Author

👤 Peter Ugwu

👤 Bernabas

(back to top)

🔭 Future Features

  • Update style to make more nice.

(back to top)

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

(back to top)

⭐️ Show your support

If you like this project, Please give it a ⭐️

(back to top)

🙏 Acknowledgments

Thanks @microverse

(back to top)

FAQ

How do I add route to rail app?

  • Run rails routes

How do I generate rails controller files?

  • Run rails g controller controller_name NB: It is a naming convention to pluralize controller names

📝 License

This project is MIT licensed.

(back to top)

Releases

No releases published

Packages

 
 
 

Contributors