Simplified guide to running Vonage ADP locally
These are some very brief notes that will be useful to anyone who needs to run Vonage API Developer Portal locally.
Prerequisites
- This assumes you have
git
installed and running - Also assumes you have
brew
installed and running - Assumes you have cloned ADP locally (git clone https://github.com/Nexmo/nexmo-developer.git)
- Assumes you are running on a Mac (tweaks required if not)
- Assumes you know how to create GitHub Personal Access Tokens (PATs)
Authentication
Station Gem is now available in the public Gems repo, rubygems.org.
Install your bits
Install tools:
brew install postgres rbenv
and might as well start Postgres:
brew services start postgresql
Fix up your .env
cp .env.example .env
Open the file and comment out the Redis line as we're not using it locally (for testing docs).
Set Ruby version
rbenv 2.5.8
rbenv global 2.5.8
Install packages
gem install bundle
bundle install
Submodules
You also need to have the submodules present locally:
git submodule init && git submodule update
git config --global submodule.recurse true
Run the Gem
Run the Gem with:
OAS_PATH="`pwd`/_open_api/api_specs/definitions" bundle exec nexmo-developer --docs=`pwd`
Then go to http://localhost:3000 with your browser.
NOTE: I mainly put this here as people were not finding the README. Hopefully by the magic of Google this will be a little more helpful.