Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cpursley/mssql_ecto_friends

MssqlEcto + Docker Compose
https://github.com/cpursley/mssql_ecto_friends

ecto elixir sql-server

Last synced: about 2 months ago
JSON representation

MssqlEcto + Docker Compose

Awesome Lists containing this project

README

        

# Friends

A sample application demonstrating [MssqlEcto](https://github.com/findmypast-oss/mssql_ecto) (Microsoft [SQL Server](https://hub.docker.com/r/microsoft/mssql-server-linux/) + Elixir's [Ecto](https://github.com/elixir-ecto/ecto))

Based on: https://github.com/elixir-ecto/ecto/tree/master/examples/friends

## Installation

Install Docker Compose: https://docs.docker.com/compose/install

Build containers, Elixir and MS SQL:

```bash
$ docker-compose build
$ docker-compose up
```

In separate terminal:

```bash
$ docker-compose mix setup
```

Interact with iex:

```bash
$ iex -S mix
iex> Friends.Repo.all Friends.Person
```