Skip to content

lynnlangit/reinvent-sessions-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

re:Invent sessions API

Description

Search sessions on AWS re:Invent
https://api.supinf.co.jp/v1/

Basic Usage

1. Run as a container

$ docker run --rm -p 8080:9000 -e APP_PORT=9000 -e APP_LOG_LEVEL=99 -e AWS_REGION=us-west-2 -e AWS_ACCESS_KEY_ID=xxx -e AWS_SECRET_ACCESS_KEY=yyy supinf/reinvent-sessions-api:latest

2. Access the application

http://localhost:8080/

Usage with golang

1. Install go binary

$ go get github.com/supinf/reinvent-sessions-api/

2. Run this application

$ AWS_REGION=us-west-2 AWS_ACCESS_KEY_ID=? AWS_SECRET_ACCESS_KEY=? APP_PORT=9000 reinvent-sessions-api

3. Access the application

http://localhost:9000/

Usage with DynamoDB Local, VirtualBox, CoreOS & Docker containers

1. Install VirtualBox & Vagrant

2. Install vagrant-hostsupdater plugin

$ vagrant plugin install vagrant-hostsupdater

3. Change your working directory to vagrant folder

$ cd /path/to/this-repository-root/vagrant

4. Create a virtual machine with AWS credentials

$ AWS_REGION=us-west-2 AWS_ACCESS_KEY_ID=? AWS_SECRET_ACCESS_KEY=? vagrant up

5. Confirm whether a service is running

http://reinvent-sessions-api.localhost.com/

6. Restart service & check application logs

http://reinvent-sessions-api.localhost.com:9000/container/statlog/ap

7. Test the application

$ vagrant ssh -c "docker run --rm -v /home/core/share:/go/src/github.com/supinf/reinvent-sessions-api supinf/reinvent-sessions-api:base go test github.com/supinf/reinvent-sessions-api/..."

8. Teardown the VM

$ vagrant halt

Contribution

  1. Fork (https://github.com/supinf/reinvent-sessions-api/fork)
  2. Create a feature branch
  3. Commit your changes
  4. Rebase your local changes against the master branch
  5. Create new Pull Request

Copyright and license

Code and documentation copyright 2015 SUPINF Inc. Code released under the MIT license.

About

Search sessions on AWS re:Invent

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages