Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/swag666baby/url-shortener
a url shortener.
https://github.com/swag666baby/url-shortener
api express typescript url-shortener
Last synced: about 1 month ago
JSON representation
a url shortener.
- Host: GitHub
- URL: https://github.com/swag666baby/url-shortener
- Owner: Swag666baby
- Created: 2023-07-15T23:57:17.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-12-11T17:12:33.000Z (about 1 year ago)
- Last Synced: 2023-12-11T18:28:50.280Z (about 1 year ago)
- Topics: api, express, typescript, url-shortener
- Language: TypeScript
- Homepage:
- Size: 27.3 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# building
**• cloning**
```bash
git clone https://github.com/Swag666baby/url-shortener
cd url-shortener
```**• running**
```bash
yarn
tsc
node dist/server
```### example of use
```javascript
const axios = require("axios");
async function shortener(){
const request = await axios.post("http://localhost:3000/shorter", {"url": "https://github.com"})
console.log(request.data)
}
shortener()```