Coder Social home page Coder Social logo

engineering-gitbook's Introduction

description
Running Experience

Getting Started

Local Development

Running Experience is simple to get running locally.

$ bin/setup

{% hint style="info" %} This assumes that you have a machine capable of running Ruby, Postgresql (10+), and Redis. If that is not configured on your machine a few brew commands should do the trick ๐Ÿ˜‰ {% endhint %}

This will do a couple of things:

  • Install and configure Lefthook
  • Run yarn
  • Setup a basic .env

Ngrok

We also use ngrok quite a bit in our local development for remote pairing and integrations with 3rd party APIs. Here is an example ngrok config that lets you stand up:

  • Rails reverse proxy to 3000
  • SSH reverse proxy to 22
  • SimpleHTTPServer reverse proxy to 8000

{% code title="ngrok.yml" %}

authtoken: your_token
tunnels:
  ssh:
    proto: tcp
    addr: 22
    hostname: hamike.ngrok.io
  rails:
    proto: http
    addr: 3000
    hostname: hamike.ngrok.io
  simple_http:
      proto: http
      addr: 8000
      hostname: hamike.ngrok.io

{% endcode %}

{% hint style="info" %} Store your ngrok.yml outside of the repository to avoid committing it to version control. You can reference an external ngrok.yml with the following command

$ ngrok start -config ~/.ngrok2/ngrok.yml rails ssh simple_http

{% endhint %}

Servers

There are several servers that you will need to run have a functioning local environment.

Rails

$ rails s

Webpacker

$ bin/webpack-dev-server

engineering-gitbook's People

Contributors

mpmenne avatar

Watchers

 avatar  avatar  avatar  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.