Giter VIP home page Giter VIP logo

tyk-vagrant's Introduction

tyk-vagrant

Vagrant script for Tyk API Gateway https://tyk.io/

Covers:

  • Tyk Gateway 1.9.0
  • Tyk Dashboard 0.9.7

Installation

Install Vagrant and Virtualbox.

Download this repository to your local development machine:

git clone [email protected]:leeprovoost/tyk-vagrant.git

Go to project directory and run:

vagrant up

How to use

Open a terminal and log into your vagrant box:

vagrant ssh

Run Tyk configuration scripts (replace XXX.XXX.XXX.XXX with your host computer's IP address):

sudo /opt/tyk-gateway/install/setup.sh --dashboard=1 --listenport=8080 --redishost=localhost --redisport=6379 --domain="" --mongo=mongodb://localhost/tyk_analytics

sudo /opt/tyk-dashboard/install/setup.sh --listenport=3000 --redishost=localhost --redisport=6379 --mongo=mongodb://localhost/tyk_analytics --tyk_api_hostname=$HOSTNAME --tyk_node_hostname=http://localhost --tyk_node_port=8080 --portal_root=/portal --domain="XXX.XXX.XXX.XXX"

If you need some more info on tweaking the configuration, have a look at the Tyk documentation.

Start the Tyk services now:

sudo service tyk-gateway start
sudo service tyk-dashboard start

Final step is to run the configurator to create a test account. Open a new terminal, make sure you are now in your host machine, go to your project directory and run the following script (Replace the XXX.XXX.XXX.XXX with your computer's IP address):

sudo ./init.sh XXX.XXX.XXX.XXX

If all goes well, you should see now something like:

Creating Organisation
ORGID: 566ff039a8f3e81ecf000001
Adding new user
USER AUTH: 3e997cec843945dc734c7cf530c2c149
NEW ID: 566ff039cdc5a98e593f3ab4
Setting password

DONE
====
Login at http://XXX.XXX.XXX.XXX:3000/
User: [email protected]
Pass: test123

Open your browser now: http://XXX.XXX.XXX.XXX:3000/ and log in with the credentials you've been provided by the configuration script.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.