Skip to content

Preview is a graphical preview tool for git repositories

License

Notifications You must be signed in to change notification settings

punchagan/preview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Preview

Preview is a graphical preview tool for git repositories. It is inspired by the NYT internal tool described by @mbostock in this talk.

Developing

Setup

When you first clone this repository, run:

lein duct setup

This will create files for local configuration, and prep your system for the project.

Configuration

To configure the project, set the following config in the dev/resources/local.edn file:

{:duct.core/include ["dev"]
 :preview.handler/views {:preview-root "/path/to/repo/root"
                         :preview-gh-user "UserName"}}
  • :preview-root is the directory used by Preview to save the cloned repos, screenshots and other data.

  • :preview-gh-user is the GitHub username of the user to follow using Preview.

Environment

To begin developing, start with a REPL.

lein repl

Then load the development environment.

user=> (dev)
:loaded

Run go to prep and initiate the system.

dev=> (go)
:duct.server.http.jetty/starting-server {:port 3000}
:initiated

By default this creates a web server at http://localhost:3000.

When you make changes to your source files, use reset to reload any modified files and reset the server.

dev=> (reset)
:reloading (...)
:resumed

Testing

Testing is fastest through the REPL, as you avoid environment startup time.

dev=> (test)
...

But you can also run tests through Leiningen.

lein test

Legal

Copyright © 2017 Puneeth Chaganti

LICENSE AGPL-3.0

About

Preview is a graphical preview tool for git repositories

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published