Coder Social home page Coder Social logo

activeportal's Introduction

ActivePortal

Build Status Dependency Status Code Climate

What's this?

ActivePortal is a gem for Ruby on Rails 4 applications. It contains a group of gem that need for a modern portal. Every gem is optimised for a content heavy website with more thousand users.

Features

  • User authentication and registration with confirmation (devise)
  • I18n and language detection (devise-i18n, devise-i18n-bootstrap, http_accept_language)

Documentation

Requirements

Before install this gem make sure you did these steps:

1. Add gem 'devise' to your Gemfile 2. execute following command bundle exec rails generate devise:install

Install

1. Put your Gemfile the following line:

gem 'activeportal', github: 'nyjt/activeportal'

2. Execute bundle:

bundle install

3. Mount the active_portal Rails engine. Put the following line into config/routes.rb:

mount ActivePortal::Engine => '/custom_name'

You can change custom_name prefix as you would like. Another option to mount the engine to '/' like here:

mount ActivePortal::Engine => '/'

# and here come the other routes

4. Create your customised user model to app/models/active_portal/user.rb with the following content:

module ActivePortal
  class User < ActiveRecord::Base
    # Include default devise modules. Others available are:
    # :confirmable, :lockable, :timeoutable and :omniauthable
    devise :database_authenticatable, :registerable, :confirmable,
           :recoverable, :rememberable, :trackable, :validatable
  end
end

Of course you can add or remove modules to change capaiblities of Devise.

5. Change the first line on app/controllers/application_controller.rb:

class ApplicationController < ActivePortal::ApplicationController

Your ApplicationController should inherit from ActivePortal::ApplicationController.

6. Make sure you have added root path to your routes:

root 'pages#home'

7. Database migrations:

bundle exec rake railties:install:migrations
bundle exec rake db:migrate

Configuration

  • Make sure you added this line to config/environments/production.rb:
config.action_mailer.default_url_options = { host: 'myhost.example.com' }

License

This project rocks and uses MIT-LICENSE.

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.