An open API service indexing awesome lists of open source software.

https://github.com/lynnlangit/reinvent-sessions-api

Search sessions on AWS re:Invent
https://github.com/lynnlangit/reinvent-sessions-api

Last synced: 6 months ago
JSON representation

Search sessions on AWS re:Invent

Awesome Lists containing this project

README

          

re:Invent sessions API
---

## Description

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

## Basic Usage

### 1. Run as a container

```shell
$ 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/](http://localhost:8080/)

## Usage with golang

### 1. Install go binary

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

### 2. Run this application

```shell
$ 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/](http://localhost:9000/)

## Usage with DynamoDB Local, VirtualBox, CoreOS & Docker containers

### 1. Install VirtualBox & Vagrant

- [VirtualBox](https://www.virtualbox.org/)
- [Vagrant](http://www.vagrantup.com/)

### 2. Install vagrant-hostsupdater plugin

```shell
$ vagrant plugin install vagrant-hostsupdater
```

### 3. Change your working directory to vagrant folder

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

### 4. Create a virtual machine with AWS credentials

```shell
$ 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/](http://reinvent-sessions-api.localhost.com/)

### 6. Restart service & check application logs

[http://reinvent-sessions-api.localhost.com:9000/container/statlog/ap](http://reinvent-sessions-api.localhost.com:9000/container/statlog/ap)

### 7. Test the application

```shell
$ 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

```shell
$ vagrant halt
```

## Contribution

1. Fork ([https://github.com/supinf/reinvent-sessions-api/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](https://github.com/supinf/reinvent-sessions-api/blob/master/LICENSE).