rcqx / weblog

A multi-user blog application with time-stamped entries built with RoR

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Weblog: API endpoints 🕸️🕸️

A multi-user blog application with time-stamped entries built with RoR

Getting Started

This repository includes files with Ruby that can be used to test the created main classes from the app

Clone this link into your local device.

To run test make sure that rspec-rails and capybara libraries are installed in your project

To double check please run:

bundle install

This will install both gems if they were missing in your environment.

Run the server:

rails s

Open localhost:3000 port in your computer and go to /users to check all users

localhost:3000/users

Open localhost:3000 port in your computer and go to /users to check posts of a single user

localhost:3000/users/1

Open localhost:3000 port in your computer and go to /users to check posts, comments and likes of a user in greater detail

localhost:3000/users/1/posts

Open localhost:3000 port in your computer and go to /users to check an specific post

localhost:3000/users/1/posts/1

Running tests

To run all tests including, user and post controllers (both features and request) please run rspec in the main project folder:

rspec

To run test for a specific test run rspec and add the location of the file:

rspec ./spec/requests/posts_spec.rb

Authors

👤 Jose

👤 Bassem

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

  • Hat tip to anyone whose code was used
  • Inspiration
  • etc

📝 License

This project is MIT licensed.

About

A multi-user blog application with time-stamped entries built with RoR

License:MIT License


Languages

Language:Ruby 76.4%Language:HTML 20.3%Language:CSS 1.9%Language:JavaScript 1.4%