Code Monkey home page Code Monkey logo

blog-spa's Introduction

Blog App

Blog app is a fully functional website that will show the list of posts and empower readers to interact with them by adding comments and liking posts

Milestone 1:

  • Create routes.
  • Create action in the correct controller.
  • Create a view file.

Milestone 2:

  • Add RSpec as a gem.
  • Create a Request spec file for controllers.
  • Test each action performed.

Milestone 3:

  • Build project schema.
  • Create and run migration files.
  • Add table and column names based on ERD diagram.

Milestone 4:

  • Create model classes for all entities as shown in the ERD diagram.
  • Set up associations between models.
  • Your models should include:
    • A method that returns the 3 most recent posts for a given user.
    • A method that updates the posts counter for a user.
    • A method which returns the 5 most recent comments for a given post.
    • A method that updates the comments counter for a post.
    • A method that updates the likes counter for a post.
  • Make current user data available to all controllers.
  • Create a method called current_user in your ApplicationController.
  • A current_user method should return the first user from a database.

Built With

  • Ruby
  • Ruby on rails

Getting Started

To get a local copy up and running:

  • Clone this repo with:

    git clone https://github.com/sneeu-leeu/Blog-SPA
  • Navigate to the folder/directory

    cd Blog-SPA

Testing

  • After cloning first run bundle install
  • Then run rails webpacker:install to install webpack dependencies
  • Run bundle install again
  • Finally, run bundle exec rspec to see the tests pass

Author

๐Ÿ‘ค Stephan Annandale

๐Ÿค Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a โญ๏ธ if you like this project!

๐Ÿ“ License

This project is MIT licensed.

blog-spa's People

Contributors

sneeu-leeu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.