- 📖 About the Project
- 💻 Getting Started
- 👥 Authors
- 🔭 Future Features
- 🤝 Contributing
- ⭐️ Show your support
- 🙏 Acknowledgements
- 📝 License
** BlogApp ** Is a Ruby on Rails is project that will allow the user to have an account, post a blog, comment and like.
- Back-End Ruby on Rails operations
To get the content of this project locally you need to run the following commands in your terminal:
and follow these steps.
- IDE(code editor) like: Vscode, Sublime, etc.
- Git
Clone this repository to your desired folder:
- Download the Zip file or clone the repo with:
git clone git@github.com:Gdiazdiaz/App-Blog.git
- To access cloned directory run:
cd curriculum
To install linters and other project's dependencies run:
bundle install
To run the project, execute the following command:
- setup the database:
rails db:setup
- run the rails server:
rails s
For the API To get the users on the browser http://127.0.0.1:3000/users To get a specific user http://127.0.0.1:3000/users/:user_id To get the posts for a user http://127.0.0.1:3000/users/:user_id/posts To get a specific post http://127.0.0.1:3000/users/:user_id/posts/:post_id To get the comments of a post http://127.0.0.1:3000/users/:user_id/posts/:post_id/comments To post a comment send a POST request with the format { "author_id": user_id, Note: :user_id must be the id of the user who creates the comment. "text": "your comment" }
rspec spec
For tracking linter errors in Ruby files run:
rubocop .
👤 Glenda Diaz
- GitHub: @gjuliao
- LinkedIn: Glenda Diaz
👤 Shahadat Hossain
- [likes-will-be-unique]
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
If you like this project please give it a star.
I would like to thank the Microverse team, all micronauts and my coding-partners for the support.
This project is MIT licensed.