Coder Social home page Coder Social logo

obtvse2's Introduction

Obtvse 2

A clean and simple markdown blogging platform on Rails.

Demo | Demo Admin

Username: [email protected]

Password: password

Whats New

Obtvse 2 was rewritten entirely with a focus on being more user friendly, quicker, modern, and customizable.

Features

  • Two new themes
  • Easy addition of new themes and color schemes
  • Built in user system with sorcery
  • Support for Typekit fonts
  • Turbolinks

New Admin

  • New interface
  • Live filter posts
  • Post stats
  • Split screen preview markdown that follows scroll position
  • Full keyboard shortcut support

Backend features

  • Slim templating
  • Kramdown for markdown
  • Coderay for syntax highlighting
  • Bugfixes all over (still needs many more!)

Migrating

Obtvse 2 is compatable with obtvse's original database structure and migrations. Migration is as easy as cloning this repo, pointing to your old database and running migrations.

TODO

Obtvse needs post history saving so you can mark versions of a post. This would also allow for editing live posts without them updating live.

Installation

If you are new to Rails development, check out guides for getting your development environment set up for Mac and Windows.

cd ~/Sites
git clone git://github.com/natew/obtvse2.git
cd obtvse2
bundle install
rake db:migrate

Edit config/info.yml to fill in your personal and site information.

Start the local server:

bundle exec rails s

Go to 0.0.0.0:3000, to administrate you go to /admin

Installing on Heroku? You may need to run the following after you've updated to the latest Rails 4 version.

heroku config:set PATH=bin:vendor/bundle/ruby/2.0.0/bin:/usr/local/bin:/usr/bin:/bin

obtvse2's People

Contributors

harrisongill avatar jamesgecko avatar lauradhamilton avatar markbahnman avatar natew avatar shilov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

obtvse2's Issues

Admin panel not working on demo

When going to the demo version and entering the credentials from the documentation, the application does not seem to log in and takes the user back to the home page with zero admin functionality.

When I spin up a new app, I can't create the first user

I am running obtvse2 locally.

The server is up and running fine.

When I go to http://localhost:3000/admin then I see a form asking for my email address and password.

However, I never had a chance to set up my username and password. When I run "select * from users" I get no results.

Looking at the code, it seems like the intent is to have a GUI to create the first user? For some reason, I can't quite get this to work.

Thanks for making obtvse. It's beautiful :-)

UPDATE: I created a user via rails console, and now admin/login is working fine. If that's the expected workflow, I'd be happy to update the README to explain that a little bit. If it's supposed to work via GUI, then maybe there is a bug.

Turbolinks very slow on Heroku free plan?

This is more of a question. I pretty much deployed with no changes to the current codebase and the contents takes at least a second to load, even with no posts.

You guys notice this?

Switching themes

I don't know if anyone is still maintaining this. This is more of a question. But I'd like to see where the theme is specified so I can switch among themes.

Is there a way to include this in an existing rails app ?

So this is obviously a question and not an issue. I took one look at obtvse2 and immediately decided that it's the blogging platform i want to use, however I was wondering if i could include it in an existing rails application and route it to /blog ?

Sorry if my question is stupid in any way.. i am a rookie.

Thanks,

How to run in production mode?

I have to add rails_env development; at nginx server:
server{
...
rails_env development;
....
}

without this line, it does not work.
How to make it work in production mode?

Heroku deploy error

Here is the response I get when I tried to deploy to heroku:

Could not find compass-rails-2.0.alpha.0 in any of the sources

On rubygems.org:

This gem has been yanked, but it is still available for download for other gems that may have depended on it.

wrong number of arguments (2 for 1)

Hi,

It might be a ruby version issue or similar, but I have installed ruby on rails for the first time on my server using RVM I have tried ruby 2.2.1 and 2.0.0 it took a bit of fiddling, but i got there....

I run the app with: bundle exec rails s
and when I first went to admin login it prompted to setup a new user but then errors when trying to login and redirecting to /sessions with the following error:

any thoughts on what I did wrong? - thanks.

ArgumentError in SessionsController#create
wrong number of arguments (2 for 1)
Extracted source (around line #8):

  1. user = login(params[:email], params[:password], true)
  2. if user
  3.  redirect_back_or_to root_path, notice: "Logged in!"
    
  4. else
  5.  redirect_to root_path, alert: "Email or password was invalid."
    
  6. end

Rails.root: /var/websites/blog/obtvse2
Application Trace | Framework Trace | Full Trace

app/controllers/sessions_controller.rb:8:in `create'

CSS changes not updating on production

I made a CSS change and while it shows up in development it doesn't show up in production, no matter if I clear my cache or restart the dyno.

I'm going to look at the configs, but off the top of your head do you know if there's a setting somewhere which is doing some aggressive caching?

Can not login the admin panel

I have installed the obtvse2 application locally, but when I try to login the admin panel, it redirects to the homepage. Is there any document of how to generate an initial administrator?

how to switch to the other theme?

I remember obtvse2 had a white theme before, but it is in the dark theme by default now, how can I switch back to the white theme?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.