Giter VIP home page Giter VIP logo

tessel.io's Introduction

tessel.io website

Code of Conduct

This is the website codebase for tessel.io. Contributions welcome.

Development

This repo is built on gulp, sass, and livereload.

Environment variables

Environment variables examples can be found in .env.example

npm run dev will automatically use the .env file you have locally. You can also export the variables to your environment manually with export $(cat .env | xargs).

Production env is stored in the password management. It should live in /mnt/secrets/tessel-env.json on the server the currently used keys are set in the .env.example file.

Running the server locally

npm install
npm run build
npm run dev

Be sure to install livereload plug-in to your chrome browser while developing.

Tools used in this repo

Gulp

Gulp is a task runner for development. While it can be used in production it's not advisable. Everything should be pre-compiled before it's pushed to heroku when using npm run dev

Sass

Syntactically Awesome Style Sheets docs

We use Foundation, which has scss and JavaScript files in its npm package.

Jade

HTML that sucks less docs

Browserify

Using browserify to combined and compress js files. docs

data.json, faq.json

Currently using this for a cms. Eventually we should move to something that does that. Gulp will watch for changes in json files so when you update the json the server will reload. This allows us to use any of these attributes if we load them in as context for jade templates.

Keep track of the size of these files as they are loaded into memory on server start. Make sure they don't start to get absurdly large.

aws.json

To upload compressed images assets to AWS, fill out aws.json in accordance with https://www.npmjs.com/package/gulp-s3.

Celery

Ensure you have a .env file.

In production, set the env variables CELERY_URL and CELERY_TOKEN.

In development, set the TEST_CELERY_URL, TEST_CELERY_TOKEN, and TEST_CELERY_ID variables.

##Deployment

Automated Deployment

A Bocoup run Hookshot instance is configured to deploy commits taged with prod-xxx to production. Where xxx is an incrementing version number. You can see the results of a deploy in the webhook response tab of this repo.

AWS

Ansible

Images and Scripts

Be sure to install the AWS cli install aws cli

Safest way is to use the bundler if you're on Linux or OS X installing on linux

include an aws.json file

{
  "accessKeyID": "Tessel-accessID",
  "secretAccessKey": "Tessel-secret-access-key",
  "bucket": "technicalmachine-assets/launch"
}

commands to download assets

gulp images-download

command to encoding optimize and upload images

gulp images-upload

tessel.io's People

Contributors

frijol avatar reconbot avatar johnnyman727 avatar hipsterbrown avatar tcr avatar bennycode avatar rwaldron avatar craftedsystems avatar

Watchers

James Cloos avatar Mario Pizzinini 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.