Blogs API is a rails based api application to create posts, create comments into posts, like to posts & comments
- Clone the Repo
- bundle install
- Update config/database.yml (currently its sqlite3)
- Request master key from repo owner
- Create a file master.key in config folder
- Copy the received key in config/master.key
- bundle exec rake db:create
- bundle exec rake db:migrate
- bundle exec rake db:seed
- Use dump if it is available
- Start Rails server
Ruby - 2.6.5 Rails - 6.1.3
RAILS_ENV=test bundle exec rails db:create
rails db:test:prepare
bundle exec rspec spec
rake rswag:specs:swaggerize (Generate api documentation)
- Used rspec for testing (Done Request test cases to demonstrate )
- Active record serializer with on demand data
- Swagger Style API documentation (Postman collection can be found here https://documenter.getpostman.com/view/7302433/UVRBnRfM)
bundle exec rake analytics:users