# 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
Last active
May 26, 2016 12:07
-
-
Save sonalkr132/0a121118cd0269647f87 to your computer and use it in GitHub Desktop.
Setting up bundler-api
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment