Files
firezone/CONTRIBUTING.md
2021-06-28 08:44:03 -07:00

1.4 KiB

Contributing Guide

Read this guide before opening a pull request.

Table of Contents

  1. Prerequisites
  2. Project Setup
    1. Provision the test VMs
    2. Start the WireGuard™ interface on the server
    3. Start the WireGuard interface on the client
  3. Testing TBD

Prerequisites

You'll need the following software installed to develop for CloudFire:

Project Setup

  1. Ensure Postgres is running with a superuser role of cloudfire. E.g.
$ psql -h localhost -d postgres

> CREATE ROLE cloudfire;
  1. Install the language versions defined in .tool-versions:
# Run this from the project root
$ asdf install
  1. Resolve dependencies
$ mix deps.get
$ npm install --prefix apps/cf_http/assets
  1. Bootstrap DB
$ mix ecto.setup
  1. Launch Server
mix phx.server

Testing

Run tests with mix test from the project root.