/railstart-niceadmin

Backend admin dashboard management system based on Bootstrap 5 and NiceAdmin and Rails 7

Primary LanguageHTMLMIT LicenseMIT

railstart-niceadmin

Backend admin dashboard management system based on Bootstrap 5 and NiceAdmin and Rails 7

License

Preview: https://start.rails365.net/admin

NiceAdmin is open source template based on Bootstrap 5, you can download it from network, I integrate it with Rails 7.

It will integrate various functions and plugins, mainly for easy writing code.

Dependency:

Please make sure that Redis and PostgreSQL server is running.

Features

Included gems

Installation

Install your system softwares first.

Mac OS X

brew install imagemagick vips redis postgresql gs

Ubuntu

$ sudo apt-get install postgresql-14 redis-server imagemagick ghostscript libvips

Then follow this link to install Ruby and Rails

https://rails.new/

Or install rvm and then install Rails manually.

Running

Running the app finally

git clone git@github.com:hfpp2012/railstart-niceadmin.git
cd railstart-niceadmin
bundle install
cp .env.template .env
# and then change .env configurations for you
rails db:migrate
rails db:seed
rails server

Deployment

# change .env file configurations and upload nginx config
bundle exec cap production puma:nginx_config
# then
bundle exec cap production deploy

Also support other capistrano commands.

gem "capistrano", "~> 3.16", require: false
gem "capistrano-rails", "~> 1.6", require: false
gem "capistrano-rvm", "~> 0.1.2"
gem "capistrano3-puma", "~> 5.2"
gem "capistrano-rails-console", "~> 2.3", require: false
gem "capistrano-db-tasks", "~> 0.6", require: false
gem "capistrano-sidekiq", "~> 2.0"

You can type cap -T for details.

License

Copyright (c) 2022 hfpp2012

Released under the MIT license: