Make sure you have postgres installed with a valid user/pass and you followed INSTRUCTIONS.html
git clone [email protected]:mayesa/mancrates.git
cd mancrates
vi config/database.yml
use something like
development:
adapter: postgresql
encoding: unicode
database: orderplex_development
pool: <%= ENV.fetch('RAILS_MAX_THREADS') { 5 } %>
username: user
password: pass
test:
adapter: postgresql
encoding: unicode
database: orderplex_test
pool: 5
username: user
password: pass
production:
adapter: postgresql
encoding: unicode
database: orderplex_production
pool: 5
username: postgres
username: user
password: pass
run bundle install
run rake db:create; rake db:migrate; rake db:seed
bundle exec rspec to run tests
If you want to see the app in action, start the server with rails s. Then with your browser you can go to see all orders http://localhost:3000/orders or create a new order http://localhost:3000/orders/new