Git Product home page Git Product logo

homeland-press's Introduction

Homeland::Press

头条插件 for Homeland .

Usage

Installation

在 Homeland 应用的 Gemfile 增加:

gem 'homeland-press'

然后执行 bundle install

Configuration

修改 Homeland 的 modules 配置,增加 press 以启用。

defaults: &defaults
  # add "press" to modules
  modules: 'topic,...,press'

Screenshot

2017-02-28 10 52 08

Contributing

如果你需要开发此插件,你需要同时准备好 Homeland 项目的开发环境,并修改 Homeland 项目 Gemfile:

gem 'homeland-press', path: '../homeland-press'

将 homeland-press 路径指向一个上层目录

~/work/homeland
~/work/homeland-press

然后执行 bundle installrails db:migrate

现在,插件已经挂上了(别忘了开启 modules 的配置),然后在 Homeland 下面启动 rails s

访问 http://localhost:3000/posts 来验证功能。

License

The gem is available as open source under the terms of the MIT License.

homeland-press's People

Contributors

huacnlee avatar kelby avatar lihuazhang avatar

Watchers

 avatar

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.