Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lugolabs/iconly
Rails engine to manage your web icon fonts
https://github.com/lugolabs/iconly
icon-font icons rails-application rails-engine rails5 ruby ruby-on-rails rubygem svg svg-icons
Last synced: 6 days ago
JSON representation
Rails engine to manage your web icon fonts
- Host: GitHub
- URL: https://github.com/lugolabs/iconly
- Owner: lugolabs
- License: mit
- Created: 2017-01-30T19:37:00.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-31T14:26:13.000Z (about 6 years ago)
- Last Synced: 2024-10-29T14:15:24.681Z (14 days ago)
- Topics: icon-font, icons, rails-application, rails-engine, rails5, ruby, ruby-on-rails, rubygem, svg, svg-icons
- Language: Ruby
- Homepage: http://iconly.net
- Size: 546 KB
- Stars: 10
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
# Iconly
Ruby on Rails 5 engine that stores SVG and generate your web font icons.### Installation
Iconly uses [Fontcustom](https://github.com/FontCustom/fontcustom), so you need to have that and FontForge installed as per their [instructions](https://github.com/FontCustom/fontcustom).
Once Fontcustom is installed, add this line to your application's Gemfile:
```ruby
gem 'iconly', github: 'lugolabs/iconly'
```And then execute:
```bash
$ bundle
```### Usage
Iconly needs a few options setup to get working. Add these to a `config/initializers/iconly.rb` file:
- `login_path` - Iconly does not provide user authentication, allowing you to include the authentication method of your choice. The `login_path` should point at your Login page
- `logout_path` - your logout page, should respond to `DELETE` HTTP method
- `svg_folder` - the public folder where the SVG files will be stored.
- `downloads_folder` - the folder that will store the generated fontsE.g.:
```ruby
Iconly.logout_path = '/logout'
Iconly.login_path = '/login'
Iconly.svg_folder = 'test/dummy/public'
Iconly.downloads_folder = Rails.root.join('tmp/downloads').to_s
```#### Database
Iconly uses PostgreSQL as its backend database, and installs `pg` gem. It creates a few tables to store SVG metadata, and a `users` table for ownerships.
To start, copy the Iconly migrations to your database:
```bash
bin/rails iconly:install:migrations
```and run them:
```bash
bin/rails db:migrate SCOPE=iconly
```#### Front end
Iconly app uses *Turbolinks*, and *Bootstrap 4* for its interface.
#### Example
Check the [Dummy](https://github.com/lugolabs/iconly/tree/master/test/dummy) application for a working example.
Create, migrate, and seed the database:
```bash
bin/rails db:create
bin/rails db:migrate
bin/rails db:seed
```This will create a sample user to get you started.
Start the Rails app in `test/dummy` folder.
### License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).