https://github.com/thiagodebastos/shorturl
URL shortener microservice made with Clean Architecture in mind
https://github.com/thiagodebastos/shorturl
clean-architecture domain-driven-design microservice
Last synced: 2 months ago
JSON representation
URL shortener microservice made with Clean Architecture in mind
- Host: GitHub
- URL: https://github.com/thiagodebastos/shorturl
- Owner: thiagodebastos
- Created: 2020-02-09T08:30:26.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-11T02:49:25.000Z (about 3 years ago)
- Last Synced: 2025-12-11T17:39:32.416Z (4 months ago)
- Topics: clean-architecture, domain-driven-design, microservice
- Language: JavaScript
- Homepage: https://github.com/thiagodebastos/shorturl-client
- Size: 834 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# URL Shortener Microservice
#### Tech stack
**Database** | PostgreSQL + Knex query builder
**Server** | NodeJS + Express
**URL Encoding** | Base62 encoding of DB id
#### Creation Example
```HTTP
POST [project_url]/api/shorturl/new - body (urlencoded) : url=https://github.com/thiagodebastos/shorturl
```
#### Usage
`[this_project_url]/api/shorturl/n`\*
\* _decoding `n` with `base62` results in `1`. Lookup in DB `WHERE id = 1` will give
the result._
#### Will redirect to
https://github.com/thiagodebastos/shorturl