Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexanderprendota/aws-url-shortener
:scissors: URL Shortener. Use Amazon Web Services
https://github.com/alexanderprendota/aws-url-shortener
aws shortener url-shortener
Last synced: 5 days ago
JSON representation
:scissors: URL Shortener. Use Amazon Web Services
- Host: GitHub
- URL: https://github.com/alexanderprendota/aws-url-shortener
- Owner: AlexanderPrendota
- License: apache-2.0
- Created: 2018-07-09T08:32:35.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-04-11T07:53:07.000Z (over 1 year ago)
- Last Synced: 2024-10-08T01:41:27.590Z (3 months ago)
- Topics: aws, shortener, url-shortener
- Language: JavaScript
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Version](https://img.shields.io/badge/version-v0.0.1-green.svg)](https://github.com/AlexanderPrendota/aws-url-shortener/releases)
# URL Shortener
Сurrent version: 0.0.1 :tada:
### Environment:
| ENV | Description |
| -------------------|-----------------------------------------|
| AWS_KEY | AWS Credential |
| AWS_SECRET | AWS Credential |
| REDIRECT_HOST_NAME | Static web-site host name from S3 bucket|
| BUCKET_NAME | Amazon S3 bucket name |### Example
# How to use
From `Java-Script`:
```js
const URL = 'URL_TO_SHORTNER';function generateShortUrl(longUrl) {
return fetch(URL, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ url: longUrl })
}).then(data => data.json());
}```