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
- Host: GitHub
- URL: https://github.com/lynnlangit/reinvent-sessions-api
- Owner: lynnlangit
- License: mit
- Created: 2015-09-29T20:46:29.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-09-28T04:35:50.000Z (about 10 years ago)
- Last Synced: 2025-03-28T21:15:25.587Z (6 months ago)
- Language: JavaScript
- Size: 809 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).