- π 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.
Ruby on Rails
- Ruby
- Ruby
- Ruby on Rails
- Creating a data model
- Functional website
- Unit testing
- Database
- Authentication
To get a local copy up and running, follow these steps.
You need the following tools be installed in your computer:
- Download the
Zip
file or Clone the repo with:
git clone https://github.com/sadaf-Daneshgar/blogapp.git
- To access the project directory
cd rail-blog-app
bundle install
rails db:migrate
rails db:seed
rails s
Check http://localhost:3000/ in your browser
- To run models tests
rails db:migrate RAILS_ENV=test
rspec
- To use the API version make sure to set the header
Accept
toapplication/json
and the headerContent-Type
toapplication/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 toYOUR_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"
}
π€ Sadaf Daneshgar
- π€ GitHub: @Sadaf-Daneshgar
- π€ Twitter: @SadafDaneshgar
- π€ LinkedIn: Sadaf Daneshgar
π€ Second Authors
π€ Mohamed Sabry
- GitHub: @mohamedSabry0
- Twitter: @mohsmh0
- LinkedIn: LinkedIn
- 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.
Feel free to check issues page.
If you like this project, kindly drop a start βοΈ for the repository;
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.
This project is MIT licensed.