Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

encogio

Usage

Install

Install Homebrew

Install Redis

brew install redis

Install Leiningen

brew install leiningen

Install sassc

brew install sassc

Development

Ensure Redis is running:

redis-cli PING
# PONG

Run this command on the project directory

lein figwheel

Visit localhost:3449

Configuration

The URL shortener is configured with environment variables.

  • PORT: default to 8000
  • REDIS_URL: Redis URI, default to 127.0.0.1
  • SECRET_KEY: private key for signing tokens
  • SITE_HOST: The host of the site, defaults to localhost
  • SITE_SCHEME: default to "http"

Deployment

Create uberjar

lein uberjar

Set environment variables for config and run with

java $JVM_OPTS -cp target/encogio.jar clojure.main -m encogio.server

About

Anonymous URL shortener built with Redis & Clojure(Script)

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.