Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
  • Create your project with create-react-app.
  • Add a .npmrc file with the contents:
global-style = true
  • Add a blank .tesselignore file so that nothing is left out you don't intend.
  • Add a .tesselinclude file with the contents:
  • Create an index.js file with the contents:
const express = require('express');
const app = express();

let tessel = null;
try {
  tessel = require('tessel');
} catch(e) {

app.use('/', express.static(__dirname + '/build'));
app.listen(tessel ? 80 : 8080);

if (tessel) {, settings) {
    console.log(`Server running at http://${settings.ip}/`);
} else {
  console.log("Server running at");
  • Yarn or NPM add express to your project.
  • Run yarn build
  • Execute the Tessel 2 run command:
t2 run index.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.