FujitsuLaboratories/cattaz

View on GitHub
docs/usage.cattaz.md

Summary

Maintainability
Test Coverage
# How to run

Cattaz is impletened with JavaScript.
You can run it in many ways.

## Local

Install [Node 14](https://nodejs.org/en/download/) and [yarn](https://yarnpkg.com/getting-started/install).

```bash
yarn install
yarn start
```

Now you can visit `http://localhost:8080/` to view the application.

Default port is 8080. To change port number, use `PORT=12345 yarn start` instead of `yarn start`.

## Docker

```bash
docker build . -t cattaz # --build-arg http_proxy=http://user:pass@proxy.example.com:8080 --build-arg https_proxy=http://user:pass@proxy.example.com:8080
docker run -it -p 8080:8080 cattaz
```

Now you can visit `http://localhost:8080/` to view the application.

To change port numbers, refer the example below:

```bash
docker build . -t cattaz --build-arg PORT=12345
docker run -it -p 12345:8080 cattaz
```

### Docker Compose

```bash
# export http_proxy=http://user:pass@proxy.example.com:8080
# export https_proxy=http://user:pass@proxy.example.com:8080
docker-compose up
```

Now you can visit `http://localhost:8080/` to view the application.

To change ports to be used, use `PORT=12345 docker-compose up` instead of `docker-compose up`.

## Amazon EC2 Container Service

See `aws-ecs.yaml` in the source tree.