# ows-track

## Getting Started

### Installation

#### MacOS

```bash
cp .env.shadow .env
```

```bash
make pip_dev
```
In this service you need to `source venv/bin/activate` to activate the virtual environment.

### Running

When all dependencies have been installed, you can run the flask application
on your local instance by running:

```bash
make dev
```

You can optionally set a PORT environment variable to run on a port other than
5000:

```bash
PORT=5001 make dev
```

By using the development server, you will have access to specific features that
are not necessarily available in production, such as the exception tracer.

### Testing

To run the tests, all you have to do is to run:

```bash
make lint test_unit
```

### Updating

To install new dependencies.

```bash
make pip_dev
```

---

### Split

If you need to test a change behind a feature flag, make sure you have the `SPLITIO_API_KEY` variable set in your .env file. You can get this key from AWS.
