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: 16 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 (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-04-11T07:53:07.000Z (over 2 years ago)
- Last Synced: 2025-06-05T16:46:27.127Z (about 1 month ago)
- Topics: aws, shortener, url-shortener
- Language: JavaScript
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](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());
}```