https://github.com/boxuk/sweettalk
SuiteTalk API Proxy
https://github.com/boxuk/sweettalk
Last synced: 6 days ago
JSON representation
SuiteTalk API Proxy
- Host: GitHub
- URL: https://github.com/boxuk/sweettalk
- Owner: boxuk
- Created: 2013-12-13T10:02:46.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-01-25T14:36:54.000Z (over 11 years ago)
- Last Synced: 2025-01-06T02:20:14.978Z (10 months ago)
- Language: Clojure
- Size: 352 KB
- Stars: 3
- Watchers: 9
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SuiteTalk API Proxy [](http://travis-ci.org/boxuk/sweettalk) [](http://clj-deps.herokuapp.com/github/boxuk/sweettalk)
This is a HTTP server which proxies requests to the NetSuite 'Suitetalk' API,
handling pooling of concurrent connections to within the users limits.
## Usage
Clone the repository and then start the server...
```
lein run
```
This will start a web server on the default port 8080.
## Configuration
All configuration is handled through environment variables.
```
# netsuite
export ST_WS_URL="https://webservices.sandbox.netsuite.com"
export ST_WS_CONNECTIONS=1
# http server
export ST_HTTP_PORT=8080
# logging
export ST_LOG_LEVEL="warn"
export ST_LOG_PATTERN="%m"
export ST_LOG_FILE="logs/access.log"
# statsd
export ST_STATSD_HOST="localhost"
export ST_STATSD_PORT=8126
```
## Debugging
### Configuration
To view the currently running configuration you can fetch EDN from the following
endpoint.
```
/_/config
```
Endpoints beginning with _ are reserved.
## Testing
Tests are written with [Midje](https://github.com/marick/Midje).
```
lein midje
```
## Box UK
Packaging is handled by the standard process, and the app can be configured using the
above environment variables via:
```
/etc/sweettalk.conf
```
Then controlled as a normal service.