diff --git a/README.md b/README.md
index f594b5a..b530e68 100644
--- a/README.md
+++ b/README.md
@@ -1,13 +1,46 @@
-# Terradactile
+
+
+
+
+
+
Terradactile Lambda
+
+
+
+
+### Table of Contents
+
+* [About this Program](#about-the-project)
+* [Getting Started](#getting-started)
+ * [Prerequisites](#prerequisites)
+ * [Installation and Deployment](#installation-and-deployment)
+* [Usage](#usage)
+* [Contact](#contact)
+
+
+
+# About This Program
Terradactile is an API and Lambda function for fetching, assembling, and processing elevation data.
-This project contains source code and supporting files for a serverless application that you can deploy with the SAM CLI. It includes the following files and folders.
-- terradactile/terradactile - Code for the application's Lambda function.
-- terradactile/template.yaml - A template that defines the application's AWS resources. **Update the environment variables for BUCKET and ALLOWED_ORIGINS.**
+File Contents
+
+- `terradactile/terradactile` - Code for the application's Lambda function.
+- `terradactile/template.yaml` - A template that defines the application's AWS resources.
-The application uses several AWS resources, including Lambda functions and an API Gateway API. These resources are defined in the `template.yaml` file in this project. You can update the template to add AWS resources through the same deployment process that updates your application code.
+**Update the environment variables for BUCKET and ALLOWED_ORIGINS.**
+
+Sample .env file:
+```
+export BUCKET=myBucket
+export ALLOWED_ORIGINS=*
+```
+
+
+
+
+# Getting Started
If you prefer to use an integrated development environment (IDE) to build and test your application, you can use the AWS Toolkit.
The AWS Toolkit is an open source plug-in for popular IDEs that uses the SAM CLI to build and deploy serverless applications on AWS. The AWS Toolkit also adds a simplified step-through debugging experience for Lambda function code. See the following links to get started.
@@ -17,9 +50,7 @@ The AWS Toolkit is an open source plug-in for popular IDEs that uses the SAM CLI
* [VS Code](https://docs.aws.amazon.com/toolkit-for-vscode/latest/userguide/welcome.html)
* [Visual Studio](https://docs.aws.amazon.com/toolkit-for-visual-studio/latest/user-guide/welcome.html)
-## Deploy the application
-
-The Serverless Application Model Command Line Interface (SAM CLI) is an extension of the AWS CLI that adds functionality for building and testing Lambda applications. It uses Docker to run your functions in an Amazon Linux environment that matches Lambda. It can also emulate your application's build environment and API.
+### Prerequisites
To use the SAM CLI, you need the following tools.
@@ -27,13 +58,28 @@ To use the SAM CLI, you need the following tools.
* [Python 3 installed](https://www.python.org/downloads/)
* Docker - [Install Docker community edition](https://hub.docker.com/search/?type=edition&offering=community)
+
+The application uses several AWS resources, including Lambda functions and an API Gateway API. These resources are defined in the `/terradactile/template.yaml` file in this project. You can update the template to add AWS resources through the same deployment process that updates your application code.
+
+
+# Installation and Deployment
+
+## Deployment
+
+The Serverless Application Model Command Line Interface (SAM CLI) is an extension of the AWS CLI that adds functionality for building and testing Lambda applications. It uses Docker to run your functions in an Amazon Linux environment that matches Lambda. It can also emulate your application's build environment and API.
+
To build and deploy your application for the first time, cd to the project directory and run the following in your shell:
+
```bash
+cd terradactile-lambda/terradactile/terradactile/
sam build --use-container
sam deploy --guided
```
+
+
+# Usage
The first command will build the source of your application. The second command will package and deploy your application to AWS, with a series of prompts:
* **Stack Name**: The name of the stack to deploy to CloudFormation. This should be unique to your account and region, and a good starting point would be something matching your project name.
@@ -51,3 +97,15 @@ To delete the sample application that you created, use the AWS CLI. Assuming you
```bash
aws cloudformation delete-stack --stack-name terradactile
```
+
+
+# Contact
+
+Project Link: [https://github.com/sparkgeo/terradactile-lambda/](https://github.com/sparkgeo/terradactile-lambda/)
+
+Readme template edited by Alex Leamy at SparkGeo Consulting Ltd.
+
+Based off original template from [Othniel Drew](https://github.com/othneildrew/Best-README-Template)
+
+
+
diff --git a/images/sparkgeo-logo.png b/images/sparkgeo-logo.png
new file mode 100644
index 0000000..b3f62ef
Binary files /dev/null and b/images/sparkgeo-logo.png differ