This is a website for writing sports-related articles based on the different categories given.
- The index page contains the most popular article based on votes by the users. Additionally it displays the most recent article in each category.
- A user can create an account and begin writing their own articles and vote on their own article or others'.
- A user needs to be logged in to vote on articles
- Ruby v2.7.1
- Ruby on Rails v5.2.4
To get a local copy up and running follow these simple example steps.
Ruby: 2.6.3 Rails: 5.2.3 Postgres: >=9.5
These instructions will get you a copy of the project up and running on your local machine.
From your command line, first clone the project:
# Clone this repository
$ git clone https://github.com/paulzay/sporf
# Go into the project folder
$ cd sporf
# run bundle install to get the gems
$ bundle install
# Create the database
$ rails db:create
# Run the migrations
$ rails db:migrate
# Seed user and category data
$ rails db:seed
# To start the rails server, run
$ rails s
# To run the tests, run
$ bundle exec rspec
You can create your own data from here
👤 Paul Ogolla
- Github: @paulzay
- Twitter: @paulzay
- Linkedin: Paul Ogolla
- The template was made by Nelson Sakwa
- Check it out here
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!