Lifestyle is a ruby-powered blog template, where you can publish articles and vote for them.
If you are a reviewer and for some reason can't get a gamespot api, you can contact me on slack to get mine 😉
-
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)
-
Clone this repository
$ git clone git@github.com:YoseptF/lifestyle.git
-
cd into the directory (you may need to checkout to other branch depending on what you are attempting to do)
$ cd lifestyle/
-
bundle
$ bundle install
-
yarn install
$ yarn install --check-files
-
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
-
Open you browser on
localhost:3000 or 127.0.0.1:3000
-
(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 theproduction.rb
There's a live demo if you wanna check it out before downloading, or you can dowload one of the desktop versions
You can download one of the desktop vertions too :D
- Windows | direct donwload
- Linux rpm | direct download
- Linux deb | direct download
- MacOS (comming soon... but not really)
The top image is selected based on the current number of votes from all articles
A list of all categories in the site sorted by priority
Alist of all articles inside of a given category
View of each article individualy
Create articles from the app itself
Created with:
Tested with:
Also a lot of help from:
Created by: