Giter VIP home page Giter VIP logo

tulis's Introduction

Tulis

Tulis is a live markdown blog from idiot for everyone

P.S Building blogging platform is hard. In the end I only use this for few weeks. I guess this will be testimony how I learn Golang.

Installation

How can I install this?

go get -u github.com/yursan9/tulis

Run the Program

If you already configured your GOPATH and PATH to GOPATH/bin, you can run the program like this:

tulis

And you can open localhost:port in your browser (Port is default to 8080).

Run the Example

If you want to see how the application work, you can cd to the directory and execute go run main.go

cd $GOPATH/src/github.com/yursan9/tulis
TULIS_BASE="example" TULIS_RELATIVE="true" go run main.go 

Configuration

Because it's originally made to power up my simple blog, there isn't many thing that can be configured. You can configure this using environment variables. You need to add prefix TULIS before the name of options.

Example:

export TULIS_PORT=":1234"
tulis
Option Description Type
PORT Port number string
BASEDIR Base directory for your site string
POSTDIR Path to directory of your blog's posts string
TEMPLDIR Path to directory of your blog's templates string
STATICDIR Path to directory of your blog's static files string
RELATIVE If true make *DIR relative to BASEDIR bool
MAXPOSTS Number of max posts in one page uint
Option Default
PORT ":8080"
BASEDIR $PWD
POSTDIR "posts"
TEMPLDIR "templates"
STATICDIR "static"
RELATIVE true
MAXPOSTS 5

Thanks to

tulis's People

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.