Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/steelx/urlshortnr

URL Shortner with GoLang + PostgreSQL
https://github.com/steelx/urlshortnr

golang gulp postgresql

Last synced: about 2 months ago
JSON representation

URL Shortner with GoLang + PostgreSQL

Awesome Lists containing this project

README

        

# Example

### Generate short url
`curl -H "Content-Type: application/json" -X POST -d '{"url":"http://www.google.com"}' http://localhost:8080/encode/`

Response: `{"success":true,"response":"http://localhost:8080/1"}`

### Info
Visit in browser `http://localhost:8080/info/1`

# Installation
### gulp
```bash
npm install
npm i -g gulp-cli

gulp watch
```

### RUN
```
go run main.go
```