# Bulk Upload
=============

This repository represents the contents of bulkupload.theorchard.com, our system for performing bulk uploads using HTML Bulk Uploader.

## Set-Up

### Requirements

```
AWS Shared ECR Access
Docker 
docker-compose
```

### Download

```sh
git clone git@github.com:theorchard/bulkupload.git bulkupload
```

### Configure

#### Docker Environment Variables

```sh
cp env.shadow .env
```

Populate `.env` with required config and your Github Personal Token in  `GITHUB_AUTH` by replacing  `<YOUR_GITHUB_TOKEN>`.

### Running Server Locally

#### To start server

To run the server in debug mode using direct docker-compose command

```bash
docker-compose up -d bulkupload
```
OR

To run the server in debug mode using make commmand

```bash
make run_server
```

#### To Stop server

To stop the server using direct docker-compose command

```bash
docker-compose down
```
OR

To stop the server using make commmand

```bash
make stop_server
```

### Testing

To run lint and unit test using docker-compose

```bash
docker-compose up lint-and-test --build lint-and-test
```
