# {{projectTitle}}

{{projectDescription}}

## Running locally

To run the sample locally:

1. Create an application on [Auth0](https://manage.auth0.com/#/applications)
2. Go to [Auth0 API Management](https://auth0.com/docs/api/management/v2#!/Client_Grants/post_client_grants) and create a Client Grant.

```javascript
{
	"audience": "https://YOUR_TENANT.auth0.com/api/v2/",
	"client_id":"YOUR_CLIENT_ID",
	"scope": ["read:logs"]
}
```
3. Run `npm install`
4. Run 

```bash
webpack && \
wt serve build/bundle.js --port 3000 --no-merge --no-parse \
--secret AUTH0_DOMAIN="YOUR_TENANT.auth0.com" \
--secret AUTH0_CLIENT_ID="YOUR_CLIENT_ID" \
--secret AUTH0_CLIENT_SECRET="YOUR_CLIENT_SECRET"
```

Note: The client and client grant creating will be automatically when deploying though [Auth0 Extensions](https://manage.auth0.com/#/extensions).

## Deploying to Auth0 Extensions

1. Go to [Auth0 Extensions](https://manage.auth0.com/#/extensions)
2. Click on `+ Create Extension`
3. Fill in the textbox with your GitHub repository URL
4. Click on `continue`
5. Finally, click on `install`

## Deploying using wt-cli

```bash
$ npm run bundle
$ wt create ./build/bundle.js --name {{projectName}} --param owner="{tenant_name}" --param version="1.0.0" --no-parse --no-merge -p {your_tenant_profile} 
```

Note: For more information about how to get `your_tenant_profile`, click [here](https://manage.auth0.com/#/account/webtasks).

## Issue Reporting

If you have found a bug or if you have a feature request, please report them at this repository issues section.


