Skip to content

murtuzamvista/pharmeasy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

Deployment

Install RVM: (1.26.11)
Install rails: (4.2.6)
  • gem install rails

Install Postgresql:(0.18.4)
  • gem install pg

Start PostgreSQL:
  • sudo service postgresql start

Open PostgreSQL console:
  • sudo sudo -u postgres psql

Create role/user:
  • create role pharmeasy with createdb login password ‘your_password’;

Change ‘peer’ to ‘md5’ in below file:
  • /etc/postgresql/9.3/main/pg_hba.conf

Restart PostgreSQL:
  • /etc/init.d/postgresql restart

Clone project and cd into it:
Bundler
  • bundle install

Production configuration
  • mkdir config/production

  • cp config/development/config.yml config/production/config.yml

  • Change database and password fields in the above config.yml

DB Setup:
  • RAILS_ENV=production rake db:drop db:create db:migrate

Server startup
  • rails s -e production

Populating Database

Option 1
Option 2

API Documentation

  • bundle exec yardoc

  • open public/api/index.html

API Brief

Postman Collection

About

San Francisco Movie Locations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published