Skip to content

Blog developed with Ruby on Rails, you can post articles from the site itself, and it has a voting system.

Notifications You must be signed in to change notification settings

YoseptF/lifestyle

Repository files navigation

lifestile

Lifestyle is a ruby-powered blog template, where you can publish articles and vote for them.

FEATURE


How to run locally

If you are a reviewer and for some reason can't get a gamespot api, you can contact me on slack to get mine 😉

  1. Before attempting this process, you'll need:

    • ruby 2.7.0
    • rails 6
    • an API from gamespot, if you want to load the seed (It is free, and you don't even need to register, you can just login with google, and grab the key)
  2. Clone this repository

    $ git clone [email protected]:YoseptF/lifestyle.git
    
  3. cd into the directory (you may need to checkout to other branch depending on what you are attempting to do)

    $ cd lifestyle/
    
  4. bundle

    $ bundle install
    
  5. yarn install

    $ yarn install --check-files
    
  6. Migrate and seed (if you don't need the seed you can skip that one)

    5.1 if you want to seed you need to add your gamespot api in a file .env like this:

    GAMESPOT_API=your_api_key
    

    5.2 migrate and seed

    $ rails db:migrate db:seed
    
  7. Open you browser on localhost:3000 or 127.0.0.1:3000

  8. (optional) This project uses Azure for active storage on production, if you want to use it, you need to add the following api keys in your .env file:

    AZURE_STORAGE_ACCOUNT_NAME=your_storage_account
    AZURE_STORAGE_ACCESS_KEY=your_access_key
    AZURE_STORAGE_CONTAINER=your_storage_container
    

    or you can change from :azure to :local in the production.rb


Live demo

There's a live demo if you wanna check it out before downloading, or you can dowload one of the desktop versions

Desktop version

You can download one of the desktop vertions too :D desktop

Features

Featured article

The top image is selected based on the current number of votes from all articles Featured image

Category selection

A list of all categories in the site sorted by priority category-selection

Article chess

Alist of all articles inside of a given category article-chess

Article view

View of each article individualy article view

Article creation

Create articles from the app itself article-creation


Created with:


Tested with:

Also a lot of help from:


Created by:

About

Blog developed with Ruby on Rails, you can post articles from the site itself, and it has a voting system.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published