Skip to content

The Blog app is a classic example of a blog website. It 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.

Notifications You must be signed in to change notification settings

NATASHA-ct/BLOG-app-rails

Repository files navigation

Blog App

The Blog app is a classic example of a blog website. It 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.It also includes Authentication through login using devise.

Built With

  • Ruby
  • Rails
  • Postgresql
  • Linters

Prerequisites

  • A Command Line Interface.
  • Having Ruby installed.
  • Setup Rails
  • Postgresql
  • A code editor like Visual Studio Clone.
  • Git installed.

To check if you have Git, Postgres and Ruby installed you can use the commands below:

  $ git --version
  $ ruby --version && irb

If you don't have Ruby, you can find a complete list of ways to install Ruby, including using third-party tools like rvm, see:

(https://www.ruby-lang.org/en/downloads/)

🛠 Installation & Set Up

If you installed git you can clone the code to your machine, or download a ZIP of all the files directly.


- Open the [Repository Link](https://github.com/NATASHA-ct/BLOG-app-rails.git) of this project in GitHub.

- Once the files are on your machine, open capstone-ruby folder in [Visual Studio Code](https://code.visualstudio.com/).

## Getting Started
-To get a local copy up and running follow these simple example steps.

### Install
 Start by cloning the repository.
 
- https://github.com/NATASHA-ct/BLOG-app-rails.git

  Navigate to the created folder.

- Initialize your project with Git.
- Make sure that your project has Postgres database set up.
- Run rails server and visi thttp://127.0.0.1:3000/ in your browser!

### Usage
--Once you have your repository cloned on your machine, feel free to modify it as needed.
- To add your own page

  ### run the following in your terminal:
  - gem install rails
  - gem install pg
  - bundle install (use this whenever you want add a gem in your gem file)
  - rails new . --database=postgresql
  - rails db:create
  - rails generate controller **foldername filename*8
  - rails generate model
  
### Testing with Rspec and Capybara
  - In your terminal run > 
     bundle exec rspec

Quick view of the project

To be updated .............

Authors

👤 Natasha Tatenda Chirombe

👤 Karla Delgado (Contributor)

🤝 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!

Acknowledgments

-Hat tip to all documentations used -Inspiration

About

The Blog app is a classic example of a blog website. It 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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published