Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems installing local development environment, improve documentation regarding API Umbrella #535

Closed
jykae opened this issue Oct 22, 2015 · 11 comments

Comments

@jykae
Copy link
Contributor

jykae commented Oct 22, 2015

I started installing APInf components yesterday. All the API Umbrella packages are for Linux. What is the recommended way to install Umbrella for Mac OSX, Windows?

Tried first to install .deb package with Vagrant on fresh Ubuntu14.04 VM. Had problems with port number in URL address. When going to admin page, Umbrella rewrites URL. Should I forward HTTPS traffic also in Vagrant?

@jykae jykae changed the title Problems installating local development environment, improve documentation regarding API Umbrella Problems installing local development environment, improve documentation regarding API Umbrella Oct 22, 2015
@jykae jykae self-assigned this Oct 22, 2015
@jykae
Copy link
Contributor Author

jykae commented Oct 22, 2015

I update Vagrantfile & shell provisioning for this as I install forward. I am running on Mac OSX.

@jykae
Copy link
Contributor Author

jykae commented Oct 22, 2015

Discussion in the community https://community.apiumbrella.io/t/vagrant-support/31/2

@jykae
Copy link
Contributor Author

jykae commented Oct 22, 2015

I solved redirect problem, configured private network for VM, access for host-machine only, which is good for local development.

config.vm.network "private_network", ip: "192.168.33.10"

@jykae
Copy link
Contributor Author

jykae commented Oct 22, 2015

Didn't get Github login work, error with callback URL.
Persona login works. Got logged in admin panel.

@jykae
Copy link
Contributor Author

jykae commented Oct 22, 2015

Maybe it would be good to have Vagrantfile & provisioning scripts in another repo? And in provisioning shell script clone api-umbrella-dashboard from Github. I try to do it that way..

@jykae
Copy link
Contributor Author

jykae commented Oct 23, 2015

Meteor has issues working inside Virtualbox. For development probably then Virtualbox for Umbrella & local installation of APInf Dashboard.

Wondering where I get "auth_token" for Umbrella? Registered API key, how to get "auth_token" for Meteor?

Command "meteor --settings settings.json" fails now with error:

Error: failed [401] {"error":"You need to sign in or sign up before continuing."}

And continues trying to build in a loop.

@frenchbread
Copy link
Contributor

@JuusoV Check you email. I've sent you instructions how to get API token for apiUmbrella. All the links are there as well. Notice, that you must login to apiUmbrella's admin panel using the same email which you used to get an API Key.

@brylie
Copy link
Contributor

brylie commented Oct 26, 2015

@jykae, please review the API Umbrella Admin API documentation, which describes how to get the admin auth token.

@frenchbread
Copy link
Contributor

@brylie Is that right that for team members we do not need to download API Umbrella instance locally and can actually use one that is attached to APInf during testing/development ?

@brylie
Copy link
Contributor

brylie commented Oct 26, 2015

@frenchbread yes. We have been using our deployed version of API Umbrella (nightly.apinf.io), since we have been experiencing difficulties with Vagrant, etc.

@jykae
Copy link
Contributor Author

jykae commented Oct 26, 2015

@frenchbread Thanks for instructions and help. I got Umbrella now also working locally with APInf frontend. I am running local Umbrella inside Virtualbox built with Vagrant. Looks like I just had to generate "auth_token" using mongo client after Umbrella 0.8.0 installation from .deb package. Commented here about it: NREL/api-umbrella#135

I document usage of Umbrella Vagrant box in https://github.com/apinf/apinf-devops and auth_token generation after installation.

Meteor however seems to run better natively, as database transactions don't work inside Virtualbox.

This issue can be closed now.

@jykae jykae closed this as completed Oct 26, 2015
@jykae jykae removed the in progress label Oct 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants