Skip to content

encogio/encogio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published