Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
c7f739cc72 | ||
|
deb13f88c0 | ||
|
3b40fe92c1 |
8
.gitignore
vendored
8
.gitignore
vendored
@ -28,4 +28,10 @@
|
|||||||
app/assets/images/.keep
|
app/assets/images/.keep
|
||||||
|
|
||||||
# Ignore configuration file
|
# Ignore configuration file
|
||||||
*.conf
|
*.conf
|
||||||
|
|
||||||
|
# Ignore npm packages
|
||||||
|
node_modules
|
||||||
|
|
||||||
|
# Ignore bower packages
|
||||||
|
vendor/assets/components
|
||||||
|
4
Gemfile
4
Gemfile
@ -1,8 +1,4 @@
|
|||||||
source 'https://rubygems.org'
|
source 'https://rubygems.org'
|
||||||
|
|
||||||
# Bootstrap Theme
|
|
||||||
gem 'gentelella-rails'
|
|
||||||
|
|
||||||
gem 'carrierwave'
|
gem 'carrierwave'
|
||||||
gem 'devise'
|
gem 'devise'
|
||||||
gem 'net-ping'
|
gem 'net-ping'
|
||||||
|
89
Gemfile.lock
89
Gemfile.lock
@ -39,11 +39,11 @@ GEM
|
|||||||
minitest (~> 5.1)
|
minitest (~> 5.1)
|
||||||
tzinfo (~> 1.1)
|
tzinfo (~> 1.1)
|
||||||
arel (8.0.0)
|
arel (8.0.0)
|
||||||
autoprefixer-rails (7.2.3)
|
autoprefixer-rails (7.1.6)
|
||||||
execjs
|
execjs
|
||||||
bcrypt (3.1.11)
|
bcrypt (3.1.11)
|
||||||
bootstrap-daterangepicker-rails (0.1.7)
|
binding_of_caller (0.7.3)
|
||||||
railties (>= 4.0, < 5.2)
|
debug_inspector (>= 0.0.1)
|
||||||
bootstrap-sass (3.3.7)
|
bootstrap-sass (3.3.7)
|
||||||
autoprefixer-rails (>= 5.2.1)
|
autoprefixer-rails (>= 5.2.1)
|
||||||
sass (>= 3.3.4)
|
sass (>= 3.3.4)
|
||||||
@ -53,17 +53,9 @@ GEM
|
|||||||
activemodel (>= 4.0.0)
|
activemodel (>= 4.0.0)
|
||||||
activesupport (>= 4.0.0)
|
activesupport (>= 4.0.0)
|
||||||
mime-types (>= 1.16)
|
mime-types (>= 1.16)
|
||||||
chart-js-rails (0.1.4)
|
|
||||||
railties (> 3.1)
|
|
||||||
coffee-rails (4.2.2)
|
|
||||||
coffee-script (>= 2.2.0)
|
|
||||||
railties (>= 4.0.0)
|
|
||||||
coffee-script (2.4.1)
|
|
||||||
coffee-script-source
|
|
||||||
execjs
|
|
||||||
coffee-script-source (1.12.2)
|
|
||||||
concurrent-ruby (1.0.5)
|
concurrent-ruby (1.0.5)
|
||||||
crass (1.0.3)
|
crass (1.0.2)
|
||||||
|
debug_inspector (0.0.3)
|
||||||
devise (4.3.0)
|
devise (4.3.0)
|
||||||
bcrypt (~> 3.0)
|
bcrypt (~> 3.0)
|
||||||
orm_adapter (~> 0.1)
|
orm_adapter (~> 0.1)
|
||||||
@ -72,39 +64,13 @@ GEM
|
|||||||
warden (~> 1.2.3)
|
warden (~> 1.2.3)
|
||||||
erubi (1.7.0)
|
erubi (1.7.0)
|
||||||
execjs (2.7.0)
|
execjs (2.7.0)
|
||||||
fastclick-rails (1.0.1)
|
|
||||||
ffi (1.9.18)
|
ffi (1.9.18)
|
||||||
flot-rails (0.0.7)
|
|
||||||
jquery-rails
|
|
||||||
font-awesome-rails (4.7.0.2)
|
font-awesome-rails (4.7.0.2)
|
||||||
railties (>= 3.2, < 5.2)
|
railties (>= 3.2, < 5.2)
|
||||||
font-awesome-sass (4.7.0)
|
globalid (0.4.0)
|
||||||
sass (>= 3.2)
|
|
||||||
gentelella-rails (0.1.11)
|
|
||||||
bootstrap-daterangepicker-rails (>= 0.1.7)
|
|
||||||
bootstrap-sass (~> 3.3.6)
|
|
||||||
chart-js-rails
|
|
||||||
coffee-rails
|
|
||||||
fastclick-rails
|
|
||||||
flot-rails
|
|
||||||
font-awesome-sass (~> 4.7.0)
|
|
||||||
icheck-rails
|
|
||||||
jquery-rails
|
|
||||||
momentjs-rails
|
|
||||||
nprogress-rails
|
|
||||||
parsley-rails
|
|
||||||
railties (>= 4.0)
|
|
||||||
sass-rails (>= 5.0)
|
|
||||||
select2-rails
|
|
||||||
switchery-rails
|
|
||||||
globalid (0.4.1)
|
|
||||||
activesupport (>= 4.2.0)
|
activesupport (>= 4.2.0)
|
||||||
i18n (0.9.1)
|
i18n (0.9.0)
|
||||||
concurrent-ruby (~> 1.0)
|
concurrent-ruby (~> 1.0)
|
||||||
icheck-rails (1.0.2.2)
|
|
||||||
jquery-rails
|
|
||||||
rails (>= 3.1.0)
|
|
||||||
sass-rails
|
|
||||||
jbuilder (2.7.0)
|
jbuilder (2.7.0)
|
||||||
activesupport (>= 4.2.0)
|
activesupport (>= 4.2.0)
|
||||||
multi_json (>= 1.2)
|
multi_json (>= 1.2)
|
||||||
@ -116,29 +82,23 @@ GEM
|
|||||||
loofah (2.1.1)
|
loofah (2.1.1)
|
||||||
crass (~> 1.0.2)
|
crass (~> 1.0.2)
|
||||||
nokogiri (>= 1.5.9)
|
nokogiri (>= 1.5.9)
|
||||||
mail (2.7.0)
|
mail (2.6.6)
|
||||||
mini_mime (>= 0.1.1)
|
mime-types (>= 1.16, < 4)
|
||||||
method_source (0.9.0)
|
method_source (0.9.0)
|
||||||
mime-types (3.1)
|
mime-types (3.1)
|
||||||
mime-types-data (~> 3.2015)
|
mime-types-data (~> 3.2015)
|
||||||
mime-types-data (3.2016.0521)
|
mime-types-data (3.2016.0521)
|
||||||
mini_mime (1.0.0)
|
|
||||||
mini_portile2 (2.3.0)
|
mini_portile2 (2.3.0)
|
||||||
minitest (5.10.3)
|
minitest (5.10.3)
|
||||||
momentjs-rails (2.17.1)
|
|
||||||
railties (>= 3.1)
|
|
||||||
multi_json (1.12.2)
|
multi_json (1.12.2)
|
||||||
net-ping (2.0.2)
|
net-ping (2.0.2)
|
||||||
nio4r (2.2.0)
|
nio4r (2.1.0)
|
||||||
nokogiri (1.8.1)
|
nokogiri (1.8.1)
|
||||||
mini_portile2 (~> 2.3.0)
|
mini_portile2 (~> 2.3.0)
|
||||||
nprogress-rails (0.2.0.2)
|
|
||||||
orm_adapter (0.5.0)
|
orm_adapter (0.5.0)
|
||||||
parsley-rails (2.7.0.0)
|
puma (3.10.0)
|
||||||
railties (>= 3.0.0)
|
|
||||||
puma (3.11.0)
|
|
||||||
rack (2.0.3)
|
rack (2.0.3)
|
||||||
rack-test (0.8.2)
|
rack-test (0.7.0)
|
||||||
rack (>= 1.0, < 3)
|
rack (>= 1.0, < 3)
|
||||||
rails (5.1.4)
|
rails (5.1.4)
|
||||||
actioncable (= 5.1.4)
|
actioncable (= 5.1.4)
|
||||||
@ -163,7 +123,7 @@ GEM
|
|||||||
method_source
|
method_source
|
||||||
rake (>= 0.8.7)
|
rake (>= 0.8.7)
|
||||||
thor (>= 0.18.1, < 2.0)
|
thor (>= 0.18.1, < 2.0)
|
||||||
rake (12.3.0)
|
rake (12.1.0)
|
||||||
rb-fsevent (0.10.2)
|
rb-fsevent (0.10.2)
|
||||||
rb-inotify (0.9.10)
|
rb-inotify (0.9.10)
|
||||||
ffi (>= 0.5.0, < 2)
|
ffi (>= 0.5.0, < 2)
|
||||||
@ -171,12 +131,12 @@ GEM
|
|||||||
responders (2.4.0)
|
responders (2.4.0)
|
||||||
actionpack (>= 4.2.0, < 5.3)
|
actionpack (>= 4.2.0, < 5.3)
|
||||||
railties (>= 4.2.0, < 5.3)
|
railties (>= 4.2.0, < 5.3)
|
||||||
sass (3.5.4)
|
sass (3.5.2)
|
||||||
sass-listen (~> 4.0.0)
|
sass-listen (~> 4.0.0)
|
||||||
sass-listen (4.0.0)
|
sass-listen (4.0.0)
|
||||||
rb-fsevent (~> 0.9, >= 0.9.4)
|
rb-fsevent (~> 0.9, >= 0.9.4)
|
||||||
rb-inotify (~> 0.9, >= 0.9.7)
|
rb-inotify (~> 0.9, >= 0.9.7)
|
||||||
sass-rails (5.0.7)
|
sass-rails (5.0.6)
|
||||||
railties (>= 4.0.0, < 6)
|
railties (>= 4.0.0, < 6)
|
||||||
sass (~> 3.1)
|
sass (~> 3.1)
|
||||||
sprockets (>= 2.8, < 4.0)
|
sprockets (>= 2.8, < 4.0)
|
||||||
@ -185,8 +145,6 @@ GEM
|
|||||||
sdoc (0.4.2)
|
sdoc (0.4.2)
|
||||||
json (~> 1.7, >= 1.7.7)
|
json (~> 1.7, >= 1.7.7)
|
||||||
rdoc (~> 4.0)
|
rdoc (~> 4.0)
|
||||||
select2-rails (4.0.3)
|
|
||||||
thor (~> 0.14)
|
|
||||||
spring (2.0.2)
|
spring (2.0.2)
|
||||||
activesupport (>= 4.2)
|
activesupport (>= 4.2)
|
||||||
sprockets (3.7.1)
|
sprockets (3.7.1)
|
||||||
@ -197,23 +155,26 @@ GEM
|
|||||||
activesupport (>= 4.0)
|
activesupport (>= 4.0)
|
||||||
sprockets (>= 3.0.0)
|
sprockets (>= 3.0.0)
|
||||||
sqlite3 (1.3.13)
|
sqlite3 (1.3.13)
|
||||||
switchery-rails (0.8.1.1)
|
|
||||||
railties (>= 3.2, < 6.0)
|
|
||||||
thor (0.20.0)
|
thor (0.20.0)
|
||||||
thread_safe (0.3.6)
|
thread_safe (0.3.6)
|
||||||
tilt (2.0.8)
|
tilt (2.0.8)
|
||||||
turbolinks (5.0.1)
|
turbolinks (5.0.1)
|
||||||
turbolinks-source (~> 5)
|
turbolinks-source (~> 5)
|
||||||
turbolinks-source (5.0.3)
|
turbolinks-source (5.0.3)
|
||||||
tzinfo (1.2.4)
|
tzinfo (1.2.3)
|
||||||
thread_safe (~> 0.1)
|
thread_safe (~> 0.1)
|
||||||
uglifier (4.1.1)
|
uglifier (3.2.0)
|
||||||
execjs (>= 0.3.0, < 3)
|
execjs (>= 0.3.0, < 3)
|
||||||
warden (1.2.7)
|
warden (1.2.7)
|
||||||
rack (>= 1.0)
|
rack (>= 1.0)
|
||||||
|
web-console (2.3.0)
|
||||||
|
activemodel (>= 4.0)
|
||||||
|
binding_of_caller (>= 0.7.2)
|
||||||
|
railties (>= 4.0)
|
||||||
|
sprockets-rails (>= 2.0, < 4.0)
|
||||||
websocket-driver (0.6.5)
|
websocket-driver (0.6.5)
|
||||||
websocket-extensions (>= 0.1.0)
|
websocket-extensions (>= 0.1.0)
|
||||||
websocket-extensions (0.1.3)
|
websocket-extensions (0.1.2)
|
||||||
|
|
||||||
PLATFORMS
|
PLATFORMS
|
||||||
ruby
|
ruby
|
||||||
@ -224,7 +185,6 @@ DEPENDENCIES
|
|||||||
carrierwave
|
carrierwave
|
||||||
devise
|
devise
|
||||||
font-awesome-rails
|
font-awesome-rails
|
||||||
gentelella-rails
|
|
||||||
jbuilder (~> 2.0)
|
jbuilder (~> 2.0)
|
||||||
jquery-rails
|
jquery-rails
|
||||||
net-ping
|
net-ping
|
||||||
@ -236,6 +196,7 @@ DEPENDENCIES
|
|||||||
sqlite3
|
sqlite3
|
||||||
turbolinks
|
turbolinks
|
||||||
uglifier (>= 1.3.0)
|
uglifier (>= 1.3.0)
|
||||||
|
web-console (~> 2.0)
|
||||||
|
|
||||||
BUNDLED WITH
|
BUNDLED WITH
|
||||||
1.16.1
|
1.15.4
|
||||||
|
21
LICENSE
21
LICENSE
@ -1,21 +0,0 @@
|
|||||||
The MIT License (MIT)
|
|
||||||
|
|
||||||
Copyright (c) 2016-present Youngkyun Kim
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
|
||||||
copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
||||||
SOFTWARE.
|
|
@ -25,6 +25,10 @@ rails s -b 0.0.0.0
|
|||||||
|
|
||||||
If you want access via public network, use additional module like [localtunnel](https://github.com/localtunnel/localtunnel)
|
If you want access via public network, use additional module like [localtunnel](https://github.com/localtunnel/localtunnel)
|
||||||
|
|
||||||
|
## Demo
|
||||||
|
|
||||||
|
[https://www.youtube.com/watch?v=X1WXZjPlaRE](https://www.youtube.com/watch?v=X1WXZjPlaRE0)
|
||||||
|
|
||||||
## Contribution
|
## Contribution
|
||||||
|
|
||||||
In the spirit of [free software](http://www.fsf.org/licensing/essays/free-sw.html), everyone is encouraged to help improve this project. Here are a few ways you can pitch in:
|
In the spirit of [free software](http://www.fsf.org/licensing/essays/free-sw.html), everyone is encouraged to help improve this project. Here are a few ways you can pitch in:
|
||||||
@ -33,3 +37,4 @@ In the spirit of [free software](http://www.fsf.org/licensing/essays/free-sw.htm
|
|||||||
- Fix bugs and submit pull requests.
|
- Fix bugs and submit pull requests.
|
||||||
- Write, clarify or fix documentation.
|
- Write, clarify or fix documentation.
|
||||||
- Refactor code.
|
- Refactor code.
|
||||||
|
|
||||||
|
@ -3,8 +3,20 @@
|
|||||||
//= require jquery_ujs
|
//= require jquery_ujs
|
||||||
//= require turbolinks
|
//= require turbolinks
|
||||||
//= require bootstrap.min.js
|
//= require bootstrap.min.js
|
||||||
//= require gentelella
|
|
||||||
//= require gentelella-custom
|
//= require gentelella/src/js/custom.js
|
||||||
|
//= require gentelella/vendors/Chart.js/dist/Chart.min.js
|
||||||
|
//= require gentelella/vendors/Flot/jquery.flot.js
|
||||||
|
//= require gentelella/vendors/Flot/jquery.flot.pie.js
|
||||||
|
//= require gentelella/vendors/Flot/jquery.flot.time.js
|
||||||
|
//= require gentelella/vendors/Flot/jquery.flot.stack.js
|
||||||
|
//= require gentelella/vendors/Flot/jquery.flot.resize.js
|
||||||
|
//= require gentelella/vendors/datatables.net-buttons-bs/js/buttons.bootstrap.min.js
|
||||||
|
//= require gentelella/vendors/datatables.net-responsive-bs/js/responsive.bootstrap.js
|
||||||
|
//= require gentelella/vendors/dropzone/dist/min/dropzone.min.js
|
||||||
|
//= require gentelella/vendors/moment/moment.js
|
||||||
|
//= require gentelella/vendors/nprogress/nprogress.js
|
||||||
|
//= require gentelella/vendors/validator/validator.js
|
||||||
|
|
||||||
$(function() {
|
$(function() {
|
||||||
$('#flash').delay(500).fadeIn('normal', function() {
|
$('#flash').delay(500).fadeIn('normal', function() {
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -5,5 +5,9 @@
|
|||||||
@import "font-awesome";
|
@import "font-awesome";
|
||||||
@import "loading";
|
@import "loading";
|
||||||
|
|
||||||
@import "gentelella";
|
@import "gentelella/src/scss/custom";
|
||||||
@import "gentelella-custom";
|
@import "gentelella/vendors/animate.css/animate.min";
|
||||||
|
@import "gentelella/vendors/normalize-css/normalize";
|
||||||
|
@import "gentelella/vendors/switchery/switchery";
|
||||||
|
@import "gentelella/vendors/datatables.net-buttons-bs/css/buttons.bootstrap.min";
|
||||||
|
@import "gentelella/vendors/datatables.net-responsive-bs/css/responsive.bootstrap.min";
|
||||||
|
File diff suppressed because it is too large
Load Diff
13
bower.json
Normal file
13
bower.json
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"name": "gentelella_on_rails",
|
||||||
|
"authors": [
|
||||||
|
"Israel Ogbole"
|
||||||
|
],
|
||||||
|
"description": "Gentellela Admin Bootstrap template on Rails 4",
|
||||||
|
"main": "",
|
||||||
|
"license": "MIT",
|
||||||
|
"homepage": "",
|
||||||
|
"dependencies": {
|
||||||
|
"gentelella": "^1.4.0"
|
||||||
|
}
|
||||||
|
}
|
@ -2,13 +2,14 @@
|
|||||||
|
|
||||||
# Install bower, bundler, packages
|
# Install bower, bundler, packages
|
||||||
function install {
|
function install {
|
||||||
|
npm install bower
|
||||||
|
bower install --allow-root
|
||||||
gem install bundler
|
gem install bundler
|
||||||
bundle install
|
bundle install
|
||||||
}
|
}
|
||||||
|
|
||||||
# setup
|
# setup
|
||||||
function setup {
|
function setup {
|
||||||
bin/rails g gentelella:install
|
|
||||||
bin/rake db:migrate
|
bin/rake db:migrate
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -42,13 +43,22 @@ case "$(uname -s)" in
|
|||||||
# echo "os : ubuntu, use apt-get install"
|
# echo "os : ubuntu, use apt-get install"
|
||||||
# apt-get install sshpass
|
# apt-get install sshpass
|
||||||
#fi
|
#fi
|
||||||
|
echo 'Install essential packages'
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties
|
||||||
rbenv -v
|
rbenv -v
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo 'Install rbenv'
|
echo 'Install rbenv'
|
||||||
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
|
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
|
||||||
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
|
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
|
||||||
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
|
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
|
||||||
exec $SHELL
|
source ~/.bashrc
|
||||||
|
fi
|
||||||
|
ruby-build --version
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
|
||||||
|
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
|
||||||
|
source ~/.bashrc
|
||||||
fi
|
fi
|
||||||
rbenv install 2.3.3
|
rbenv install 2.3.3
|
||||||
rbenv local 2.3.3
|
rbenv local 2.3.3
|
||||||
|
Loading…
Reference in New Issue
Block a user