Skip to content

Elgenzay/jason.json

Repository files navigation

jason.json

This is a dynamic resume site. Content is pulled from a JSON file and rendered with Tera.

Setup

Clone and build:
cd to your preferred project directory and run:

$ git clone [email protected]:Elgenzay/jason.json.git
$ cd jason.json
$ cargo build --release

Alternatively, you can build an image from the provided Dockerfile.

  • Create /static/favicon.ico

  • Create /static/data/{YOUR_NAME}.json, using the sample as a reference.
    Optionally, you can also provide a pdf key in the json file containing the file name (without ".pdf" or the path) of a corresponding PDF file in /static/data/, eg: "pdf": "sample" for /static/data/sample.pdf
    This will replace the print link with a link to the PDF file for a more consistent print layout.

  • Create .env:

FILE_NAME = "{YOUR_NAME}.json"
DOMAIN = "{EXAMPLE.COM}"

FILE_NAME is required. DOMAIN is required if using TLS.
If you're going to add data that you want obfuscated to your .json file, you can add that here.

Example:

EMAIL = "{OPTIONAL_EMAIL}"

To obfuscate a contact field, use the environment variable name in the "env_var" field of the contact item,
as demonstrated in the sample JSON file:

{
	"label": "Email",
	"env_var": "EMAIL"
}

Note that FILE_NAME can be overridden with the file url query parameter.
file must be alphanumeric, and match the name of a json file in web/static/data/.
For instance, http://127.0.0.1/?file=sample will use data from web/static/data/sample.json.