0.01
No release in over a year
Ant Design on Rails: pairing world's best backend framework with the best frontend framework, without wrapping everything in API!
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 2.8, >= 2.8.1
~> 4.0, >= 4.0.1
~> 7.0.4, >= 7.0.4.2
 Project Readme

🚆 🛤️ Ant Design on Rails

Gem Version

Pairing world's best backend framework with the best frontend framework, without wrapping everything in API!

  • Ruby on Rails: the web-app framework that includes everything needed to create database-backed web applications.
  • Ant Design Pro: out-of-box UI solution for enterprise applications based on React.

Development

Install backend dependencies:

bundle

Install frontend dependencies:

yarn

Prepare the database (PostgreSQL by default):

bin/rails db:prepare

Start the backend development server at port 3000:

bin/rails server

Start the frontend development server at port 8000:

yarn dev

Access http://localhost:8000 and start hacking! 👨🏻‍💻👩🏻‍💻

Deployment

Upload Nginx configurations:

bundle exec cap production puma:nginx_config

Set up systemd components for the Puma web server:

bundle exec cap production puma:systemd:config

Handle both frontend and backend deployment in a single command:

bundle exec cap production deploy

Then access your production server. See https://ant-design-rails.minqi-pan.com/ for an example deployment.

Contributing

All contributions are welcome and greatly appreciated! 🙇