Awesome
Private Tutor CRM
Installation
- Clone repository to your local machine
- Configure database config. Just copy file config/database.example.yml to config/database.yml. If you want to connect to MySQL using not root user or if you have password for user, paste your username and password in config/database.yml. Make sure that you paste this information in every environment section (ie development, production, test and etc.)
- Run command
bundle
in your terminal to install necessary gems for project - Create databases for all environments:
rake db:create:all
- Migrate all existing migrations to have actual database schema:
rake db:migrate
- Load schema dump from actual environment (this is development environment to test environment):
RAILS_ENV=test rake db:schema:load
- Run seeds to populate database with initial data:
rake db:seed
- Run
rspec spec
in terminal and make sure that all tests passed - Start server:
rails s
- Go to [http://localhost:3000/admin]. There is default account for admin: admin@example.com:password
Testing & Development process
Use guard to fill comfortable with running tests. Just type guard
in terminal and see results of passing tests. Now every changing in test will run rspecs in terminal automatically
Contributing
TODO
TODO
- Clean up rails admin from wasted association objects