- 📖 About the Project
- 💻 Getting Started
- 👥 Authors
- 🔭 Future Features
- 🤝 Contributing
- ⭐️ Show your support
- 🙏 Acknowledgements
- ❓ FAQ
- 📝 License
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.
- 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.
To get a local copy up and running, follow these steps.
In order to run this project you need:
Install Ruby
Install Rails
Install Postgresql
Clone this repository to your desired folder:
git clone https://github.com/PeteUgwu/Blog-App.git
Install this project with:
cd Blog-App
bundle install
Setup database credentials
config/database.yml
To run the project, execute the following command:
rails server
To run tests, run the following command:
rspec spec --format documentation
👤 Peter Ugwu
- GitHub: @PeteUgwu
- Twitter: @Petrus4Charles
- LinkedIn: @peteugwu
👤 Bernabas
- GitHub: @githubhandle
- Twitter: @twitterhandle
- LinkedIn: LinkedIn
- Update style to make more nice.
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
If you like this project, Please give it a ⭐️
Thanks @microverse
- Run rails routes
- Run rails g controller controller_name NB: It is a naming convention to pluralize controller names
This project is MIT licensed.