Skip to content

rafaelmacielrsm/iw-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

1. Setup Project

Prerequisites

  • Postgresql db

Steps

  • Clone the project and change to its directory
git clone [email protected]:rafaelmacielrsm/iw-app.git
cd iw-app
  • Rename both database and secrets yaml config files
mv config/database.yml.example config/database.yml
mv config/secrets.yml.example config/secrets.yml
  • Setup your database user and password, using your favoride editor, in the example i'm using visual code
code config/database.yml

edit those lines:

development:
  <<: *default
    username: <database_username>
    password: <database_password>
    database: iw-app_development
  
  # and
  
  test:
  <<: *default
    username: <database_username>
    password: <database_password>
    database: iw-app_test
  • Install dependencies
bundle install
  • Create Databases and run migrations
rake db:create && rake db:migrate RAILS_ENV=development && rake db:migrate RAILS_ENV=test 
  • Run tests or launch the app
rspec -f d
# or depending on your rails setup
bundle exec rspec -f d
#run server and visit http:https://localhost:3000
rails s