Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/steelx/urlshortnr
- Owner: steelx
- Created: 2018-08-24T18:00:09.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-24T18:11:28.000Z (over 6 years ago)
- Last Synced: 2024-12-21T05:17:10.550Z (about 2 months ago)
- Topics: golang, gulp, postgresql
- Language: Go
- Size: 49.8 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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-cligulp watch
```### RUN
```
go run main.go
```