doc:
https://www.showdoc.cc/ElleZh?page_id=5000086977416803
-
Ruby version: 2.6.4
-
Rails version: 5.1.7
-
Database: postgresql 10.10
-
Development environment: Ubuntu 18.04.1
-
Clone from github
-
Make sure postgresql is installed
-
Bundle install
-
Update config/database.yml according to your database configure
-
Run the database
-
rake db:create
andrake db:migrate
-
Run by
./start.sh/
(need permission) ORbundle exec puma -C config/puma.rb
Then you can access it on localhost:3000
unit test is minitest
rake db:test:prepare
- use
rails test
to run all