Skip to content

hfpp2012copy/railstart

Repository files navigation

railstart-niceadmin

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

License

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

image

image

image

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

  • Beautiful style based on NiceAdmin
  • Based on Rails 7 and hotwired turbo and stimulus
  • Integrate automation deployment: capistrano
  • Pagination
  • Charts with chartjs and apexcharts and echarts
  • Icons: Bootstrap Icons and RemixIcons and Boxicons and FontAwesome
  • Text Editor: trix and TinyMCE
  • Breadcrumbs
  • Integrate Action Text
  • Support frontend website seo
  • Custom error page
  • Bootstrap and TailwindCSS flash helper with stimulus support
  • Support API(comming soon)
  • Integrate TailwindCSS for frontend
  • Integrate Simple-DataTables
  • Support aliyun, qiniu cloud storage
  • Move stimulus from importmap to webpacker
  • Support letter avatar
  • Supoort ui faces avatar
  • Admin user can upload own avatar
  • Support Own authentication system
  • Support payment: stripe, alipay, wechatpay(comming soon)
  • Support Social Logins with OAuth: Github, Wechat, Google(comming soon)
  • Support Wechat public account development(comming soon)
  • Support video upload(comming soon)
  • Admin can upload own website icon and set other system informations(comming soon)
  • Support clean and simple scaffold template(comming soon)
  • Simple code for form builder(comming soon)
  • Support Notifications(comming soon)
  • Support Internationalization (I18n)(comming soon)
  • Support Graphql API(comming soon)
  • Support Monitor performance of you Rails applications
  • Support login status management
  • Support markdown parser(comming soon)

Included gems

Installation

Install your system softwares first.

Mac OS X

brew install imagemagick vips redis postgresql gs poppler mupdf ffmpeg graphviz

Ubuntu

$ sudo apt install postgresql-14 redis-server imagemagick ghostscript libvips poppler-utils libpoppler-dev mupdf ffmpeg graphviz

pdf prewview: https://gist.github.com/Dayjo/618794d4ff37bb82ddfb02c63b450a81

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 [email protected]: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: