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.
- Ruby
- Rails
- Postgresql
- Linters
- 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/)
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
To be updated .............
👤 Natasha Tatenda Chirombe
- GitHub: [@NATASHA-ct]((https://github.com/NATASHA-ct)
- Twitter: [@NatashaChirombe]
- LinkedIn: Natasha Chirombe
👤 Karla Delgado (Contributor)
- GitHub: @karlavdelgadof
- Twitter: @karlavdelgadof
- LinkedIn: Karla Delgado
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
-Hat tip to all documentations used -Inspiration