Giter Site home page Giter Site logo

mix-rails's Introduction

MixRails

Build Status Dependency Status

MixRails is a CMS based on Ruby on Rails and uses Mongoid as ORM(MongoDB).

Usage

Create a new rails project.

$ rails new myproject -T --skip-active-record --skip-bundle --dummy-path=spec/dummy

Add this line to your application's Gemfile:

gem 'mix-rails'

And then execute:

$ cd myproject
$ bundle

In your config/application.rb add require 'mix-rails/all'.

require "action_controller/railtie"
require "action_mailer/railtie"
require "active_resource/railtie"
require "sprockets/railtie"
require "rails/test_unit/railtie"

# After rails requiring mix-rails!!
require "mix-rails/all"

Configure a mongoid instance with:

$ rails generate mongoid:config

And then run the application

$ bundle exec rails server

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Assets

You can use Backbone, CoffeeScript, HAML,

Auth

Mix-Rails uses Devise for auth, you can see more docs at:

Create a default user.

$ bundle exec rake create_user[[email protected],mypassword]

If you are using admix enter /admix and you will see the login page. You can also login with page /users/sign_in

Admix

Admix is a administrative area for any system.

URL

You can change default path for admix setting Admix::namespace_path

Admix::namespace_path = "myadminpath"
# You will access http://localhost:3000/myadminpath and see Admix running!!

TODO: Add some docs for admix

[Admix]

Plugins (Extensions)

Creatig a extensions

$ rails plugin new mix-rails-pluginame -T --skip-active-record --skip-bundle --dummy-path=spec/dummy --full

mix-rails's People

Contributors

sadjow avatar

Stargazers

 avatar

Watchers

 avatar  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.