Skip to content

Instantly share code, notes, and snippets.

@sonalkr132
Last active May 26, 2016 12:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sonalkr132/0a121118cd0269647f87 to your computer and use it in GitHub Desktop.
Save sonalkr132/0a121118cd0269647f87 to your computer and use it in GitHub Desktop.
Setting up bundler-api
# install dependencies
$ sudo dnf install memcached redis

# start redis server
$ redis-server

# start memcached
$ service memcached start

# make sure you have a username `postgres` and then create database
$ psql -c 'create database "bundler-api";' -U postgres

# create and migrate the databse
$ script/setup   # url: "postgres://postgres@localhost:5432/bundler-api"

# get data for your database from rubygems (you can terminate when you feel like you have enough data to play around with
$ rake update

# fix existing dependencies (will only run for data you fetched with `rake update`
$ rake fix_deps

# start the server (by default starts at `localhost: 9292`)
$ script/web

# pry console is available at
$ script/console

# run tests with
$ bundle exec rake spec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment