As all source{d} projects, this project follows the source{d} Contributing Guidelines.
In addition to the source{d} Contributing Guidelines, this project follows the guidelines described below.
The landing contains 2 parts:
- The static site itself: a webpack app,
- a Go API to serve the latest blog posts and job offers.
In production, each part lives in a separated container.
The static site is built with:
- webpack:
javascript
(with someREACT
components) andcss
(fromSASS
stylesheets) - hugo: for the
HTML
fromGo
templates andYAML
data
Its source code is under:
hugo
directory: forhugo
sources:content
directory: contains one.md
per landing page that defines each page metadata,data
directory: contains the landing variable content like titles, captions, descriptions, projects...layout
directory: contains theHTML
templates.
src
directory: forjs
andsass
code,static/img
directory: for site images,
There are some external applications loading resources from http://sourced.tech/ so they should be preserved between different landing versions or considered as cross-project issues.
https://sourced.tech/css/bundle.css
https://sourced.tech/js/bundle.js
https://sourced.tech/img/home_separator_3.png
https://sourced.tech/img/logo_footer.svg
https://sourced.tech/img/logos/favicon.png
- https://sourced.tech/products/community-edition/
- https://sourced.tech/products/community-edition/
- https://sourced.tech/products/enterprise-edition/
- https://sourced.tech/get-started/#engineers-tab
- https://sourced.tech/get-started/#managers-tab
- https://sourced.tech/get-started/#executives-tab
- https://sourced.tech/solutions/it-modernization-and-compliance/
- https://sourced.tech/solutions/engineering-effectiveness-efficiency/
- https://sourced.tech/solutions/devops-cloud-native-transformation/
- https://sourced.tech/solutions/talent-assessment-and-management/
- https://docs.sourced.tech/community-edition/
- https://blog.sourced.tech/
- https://sourced.tech/resources/
- https://forum.sourced.tech/
- https://github.com/src-d/awesome-machine-learning-on-source-code
- https://sourced.tech/community/
- https://sourced.tech/community/#talk
- https://sourced.tech/community/#events
- https://sourced.tech/open-source/
- https://sourced.tech/company/
- https://sourced.tech/why-sourced/
- https://sourced.tech/news-and-press/
- https://sourced.tech/company/#offices
- https://sourced.tech/company/#careers
- https://sourced.tech/company/#team
- https://go.sourced.tech/contact
- https://sourced.tech/legal/
- source{d} Ghost Theme repo docs directory has the assets that are depentents on source{d} Landing.
- source{d} Ghost Theme developmennt will soon have closer itegration with Landing as stated on the Ghost Theme repo.
The API serves (a cached version of):
- the 3 latest blog posts tagged as
technical
, and the 3 latest blog posts tagged asculture
for the home page, - all the opened positions at Lever,
Its source code is under api
directory.
You should already have Go v1.12 (or newer) installed
go version; # prints your go version
You also need Yarn v1 installed
yarn --version; # prints your Yarn version
You need to satisfy all project requirements, and then to run:
make build
You need to satisfy all project requirements, and then to run:
LANDING_URL=//localhost PORT=8081 make serve
It runs everything you need to get the site working at http://localhost:8081
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 sourcesmake hugo-server
To serve the landing locally using hugo serveryarn run api-run
To start the landing API at http://localhost:8080
If you do not need to load the job positions from lever (for /company
page), you do not need to run the landing api, so yo do not need Go. In such circumstances, you can run the landing with:
LANDING_URL=//localhost PORT=8081 make serve-without-api
The following envars are available for API configuration
envar | default *
- | -
ADDR
|:8080
FEED_BASE_URL
|http://blog.sourced.tech/json/
POSITIONS_BASE_URL
|https://api.lever.co/v0/postings/sourced?mode=json
* The default values are defined by api/config/config.go