Flick is a Rails development platform to generate, develop and deploy web applications and microservices. (Ruby, Ruby on Rails, Postgres, etc.)
- Version 0.0.3
- For production, you need to replace the asterisk with the URL of your client-side application in ./config/initializers/cors.rb file.
- Clone or download this repo
- Run
bundle install - Run
rake db:create - Run
bin/rails db:migrate RAILS_ENV=development - Run
bin/rails db:seed RAILS_ENV=development - Run
chmod +x scripts/*.bash - Run
./scripts/install-hooks.bash - Run
brew install overmind(for MacOS users) - Run
overmind start - Visit --> http://localhost:5000/. That's it!.
brew services start postgresql
Or, if you don't want/need a background service you can just run:
pg_ctl -D /usr/local/var/postgres start
- Run
rubocopfor Ruby lint. - Run
rubocop -afor fixed some issues automatically. - Run
reek .for analyzing code. - Run
brakemanfor static analysis and for security vulnerabilities. - Run
rails_best_practices .in root app directory. Helps to find unused methods, missing indexes into database tables and many other things.
To annotate all your models, tests, fixtures, and factories:
cd /path/to/app
annotateTo annotate just your models, tests, and factories:
annotate --exclude fixturesTo annotate just your models:
annotate --exclude tests,fixtures,factories,serializersTo annotate routes.rb:
annotate --routesTo remove model/test/fixture/factory/serializer annotations:
annotate --deleteTo remove routes.rb annotations:
annotate --routes --deleteTo automatically annotate every time you run db:migrate, either run rails g annotate:install or add Annotate.load_tasks to your Rakefile. See the configuration in Rails section for more info.
Doc for deployment is here.