Skip to content

Latest commit

 

History

History
103 lines (82 loc) · 3.21 KB

README.md

File metadata and controls

103 lines (82 loc) · 3.21 KB

Boilerplate Template Projects

This repo contains many of my own project boilerplate code. Some of it is documentation specific and others coding projects.

Most of these are mkproj templates that macro compile out to a project.

Table of Contents

Templates

Usage

I'll provide an example via a use case with a Clojure project. First you'll need to install the dependencies.

The recommended process is (see script version):

  1. Clone the template (this repo):
mkdir template && \
  wget -O - https://api.github.com/repos/plandes/template/tarball | \
  tar zxfv - -C template --strip-components 1
  1. Download the mkproj boilerplate project starter:
mkdir mkproj && \
  wget -O - https://github.com/plandes/clj-mkproj/releases/download/v0.0.7/mkproj.tar.bz2 | \
  tar jxfv - -C mkproj --strip-components 1
  1. Get zenbuild system by cloning or:
mkdir zenbuild && \
  wget -O - https://api.github.com/repos/plandes/zenbuild/tarball | \
  tar zxfv - -C zenbuild --strip-components 1
  1. Create (for example) a Clojure boilerplate project or choose from a directory in ./template (note that not all are mkproj projects):
/bin/bash ./mkproj/bin/mkproj config -s template/lein
  1. Optionally make changes to the project parameters mkproj.yml file (for any serious work you'll have to edit this file):
vi mkproj.yml
  1. Build out the project from the template:
/bin/bash ./mkproj/bin/mkproj
  1. Create an initial commit baseline for the project and create an uberjar:
make -C clj-someproj init uber
  1. Run the executable jar from the command line:
java -jar clj-someproj/target/someproj-0.0.1-standalone.jar 

License

Copyright © 2016 - 2017 Paul Landes

GNU Lesser General Public License, Version 2.0