Skip to content

smartlogic/vega_lite_segfault

Repository files navigation

VegaLiteSegfault

Nix dev environment

This repo was built to use a Nix development environment, but any should suffice. This repo was built with Elixir 1.17.3 and OTP 27. To use the setup in this repo:

Initial Nix Setup

  1. Install direnv through your home-manager, darwin-configuration.nix, Homebrew, or similar.
  2. Install the Nix package manager following the multi-user installation approach. Verify it's installed with nix --version.
  3. Allow Nix experimental features by default:
 mkdir ~/.config/nix/
 touch ~/.config/nix/nix.conf
 echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf

Once Nix is setup on your system

  1. Build the Nix Flake derivation:
 cd indoor_air_quality
 direnv allow .
  1. Once the output stops, check that you have access to Elixir 1.17:
 indoor_air_quality (nix-flake-setup)> elixir --version
 Erlang/OTP 27 [erts-15.0] [source] [64-bit] [smp:14:14] [ds:14:14:10] [async-threads:1] [jit]

 Elixir 1.17.3 (compiled with Erlang/OTP 27)

Additionally, a docker-compose.yml file is provided for postgres setup. To use:

docker-compose up -d

Default Phoenix stuff

To start your Phoenix server:

  • Run mix setup to install and setup dependencies
  • Start Phoenix endpoint with mix phx.server or inside IEx with iex -S mix phx.server

Now you can visit localhost:4000 from your browser.

Ready to run in production? Please check our deployment guides.

Learn more

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published