An open API service indexing awesome lists of open source software.

https://github.com/ates/netspire-admin-ar


https://github.com/ates/netspire-admin-ar

Last synced: 9 days ago
JSON representation

Awesome Lists containing this project

README

          

Web administration interface for Netspire
=========================================

Required software
-----------------

* Ruby 1.9 or higher
* Rubygems
* Rails 3.1.3

Running
-------

* cd netspire-admin
* copy config/database.yml.sample to config/database.yml


$ cp config/database.yml.sample config/database.yml
$ ls -l config/database.yml
-rw-r--r-- 1 user group 276 Dec 9 13:13 config/database.yml

* Install required gems

$ bundle install

* Bootstrap database

$ bundle exec rake db:setup

* Run application in development mode

$ bundle exec rails server

Rake tasks
----------

* To see all available tasks


$ bundle exec rake -T netspire
rake netspire:admins:create # Create new Admin account (options: LOGIN=login, PASSWORD=password, DOMAIN=name).
rake netspire:domains:create # Create new domain (options: NAME=name, TITLE=title).

* Create new domain


$ bundle exec rake netspire:domains:create NAME=myisp TITLE=MyISP

* Create new admin account with all permissions and assinged to specific domain

$ bundle exec rake netspire:admins:create LOGIN=admin PASSWORD=secret DOMAIN=myisp
Authentication token is uxsrYB4bSBgDeZ65jmaq

Deploying
---------

* Before deploying in production need to precompile CSS and JS files:


$ bundle exec rake assets:precompile

* Configure front-end HTTP server to serve static files from /public/assest