Drezyna is a Rails application stack used at Nukomeet.
By default, Drezyna is running on ruby 2.1.2
.
thin used for both development and production servers.
PostgreSQL 9.3 with ActiveRecord
minitest with fabrication
Remapped routes:
/users/sign_in
to/login
,/users/sign_out
to/logout
/users/sign_up
to/register
slim is the template language.
foundation, simple_form and compass
The application is configured to send email using a Mandrill account. Email delivery is disabled in development.
rails console
runs pry by default.- helpers generation turned off in
application.rb
withconfig.generators.helper = false
git clone https://github.com/nukomeet/drezyna
mv drezyna sampleapp
cd sampleapp
bundle
rails g rename:app_to SampleApp
Create a .env
file based on .env.sample
:
cp .env.sample .env
curl -o config/database.yml https://gist.githubusercontent.com/zaiste/10378957/raw/50dfe7f2dd2050e2903aff187fb7e11ec702fc15/database.yml
Edit config/database.yml
and replace NAME
and USER_NAME
with your own values.
Edit test/fixtures/users.yml
and put at least one user.
Create and fill DB:
rake db:create
rake db:migrate
rake db:fixtures:load
foreman run rake db:seed
If you're a Pow user
Set your env readable by Pow:
echo "
export PORT='5000'
export ADMIN_NAME='bonjour'
export ADMIN_EMAIL='[email protected]'
export ADMIN_PASSWORD='bienvenue'
export MANDRILL_USERNAME='[email protected]'
export MANDRILL_APIKEY='CHANGEME'
export SECRET_KEY_BASE='<run `rake secret` command and put here the result>'
export NEW_RELIC_LICENSE_KEY='CHANGEME'
export NEW_RELIC_APP_NAME='CHANGEME'
" > .powenv
Set and access your app:
cd ~/.pow
ln -s /path/to/your/app/sampleapp .
open http://sampleapp.dev
foreman start
Access localhost:5000
and enjoy your new application.