Skip to content

ricardobaeta/landing

 
 

Repository files navigation

Landing

Build Status

Serves the source{d} Landing and its API

Requirements

You should already have Go installed, and properly configured the $GOPATH

go version; # prints your go version
echo $GOPATH; # prints your $GOPATH path

The project must be under the $GOPATH, following the Go import conventions, what means you can go to its directory running:

cd $GOPATH/src/github.com/src-d/landing

You need also Yarn installed

yarn --version; # prints your Yarn version

Install and build

You need to satisfy all project requirements, and then to run:

make build

Development and running the landing locally

You need to satisfy all project requirements, and then to run:

make serve

It runs everything you need to get the site working at http://localhost:8181

Alternatively, you can start hugo, the api-server and webpack in a "three window mode", just running:

yarn start

With this command, each window runs a command, that can be also ran by you in case you need to control the output of each command or in any other special case:

  • yarn run webpack-watcher To start webpack watcher, that will rebuild the assets when you change its sources
  • make hugo-server To serve the landing locally using hugo server
  • yarn run api-run To start the landing API at http://localhost:8080

Configuration

The following envars are available for configuration

  • ADDR
  • FEED_BASE_URL
  • POSITIONS_BASE_URL
  • SLACK_CHANNEL
  • SLACKIN_URL

You can see more in the config package in api.

Documentation site generation

Described in doc-site-generator/README.md

About

landing for source{d}

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • CSS 50.3%
  • HTML 22.0%
  • JavaScript 14.8%
  • Go 8.6%
  • Makefile 3.5%
  • Smarty 0.8%