Giter Club home page Giter Club logo

terragen's Introduction

Terragen

A service for exploring, generating, experimenting, and tweaking generated terrain.

Releasing

Release a New Version

Versioning is done via git tags, as well as the version in package.json. Both are updated by the same mechanism.

> git add ... # all changes to be in the version
> git commit -m ...
> yarn version # and enter version number (semver)
> git push # pushes both the code and the version tag

Deploy to Production

The front end and backend are deployed in the same step. The backend artifact is AUTOMATICALLY rebuilt before a deploy. It's the same as the dev artifact, except built for a different architecture. The frontend artifact is MANUALLY built. If the front end hasn't changed, then there's no reason to rebuild it, as it takes the longest.

To build the front end artifact:

> yarn run build

To deploy both artifacts (and build the service artifact):

> ./bin/deploy.sh path/to/pem/file hostaddress

Developing

The service is written in go, and provides a Rest api. The index (root) action is special, and is used exclusively to serve the website - it serves a tiny html file that loads the separate website artifact. The website is otherwise completely separate from the backend.

Getting Started

> brew install go # Follow the instructions to setup go
> brew install yarn # May need to install node first

Updating Dependencies

> go get
> yarn install

Running Local Dev Server

> make run

terragen's People

Watchers

Josh Gildart avatar Brandon Okert avatar James Cloos avatar

terragen's Issues

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.