-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Criando estrutura inicial para app catalogo (#120)
* adiciona secret key base para api * feat: Adicionando app catalogo * fix: removendo package-lock.json plataforma_digital --------- Co-authored-by: Zoey de Souza Pessanha <zoey.spessanha@gmail.com>
- Loading branch information
1 parent
522f553
commit 104838d
Showing
7 changed files
with
83 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[ | ||
import_deps: [:ecto, :ecto_sql], | ||
subdirectories: ["priv/*/migrations"], | ||
inputs: ["*.{ex,exs}", "{lib,test}/**/*.{ex,exs}", "priv/*/seeds.exs"] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# The directory Mix will write compiled artifacts to. | ||
/_build/ | ||
|
||
# If you run "mix test --cover", coverage assets end up here. | ||
/cover/ | ||
|
||
# The directory Mix downloads your dependencies sources to. | ||
/deps/ | ||
|
||
# Where 3rd-party dependencies like ExDoc output generated docs. | ||
/doc/ | ||
|
||
# Ignore .fetch files in case you like to edit your project deps locally. | ||
/.fetch | ||
|
||
# If the VM crashes, it generates a dump, let's ignore it too. | ||
erl_crash.dump | ||
|
||
# Also ignore archive artifacts (built via "mix archive.build"). | ||
*.ez | ||
|
||
# Temporary files, for example, from tests. | ||
/tmp/ | ||
|
||
# Ignore package tarball (built via "mix hex.build"). | ||
identidades-*.tar |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
defmodule Catalogo.MixProject do | ||
use Mix.Project | ||
|
||
def project do | ||
[ | ||
app: :catalogo, | ||
version: "0.1.0", | ||
build_path: "../../_build", | ||
config_path: "../../config/config.exs", | ||
deps_path: "../../deps", | ||
lockfile: "../../mix.lock", | ||
elixir: "~> 1.14", | ||
elixirc_paths: elixirc_paths(Mix.env()), | ||
start_permanent: Mix.env() == :prod, | ||
deps: deps(), | ||
aliases: aliases() | ||
] | ||
end | ||
|
||
def application do | ||
[extra_applications: [:logger, :runtime_tools]] | ||
end | ||
|
||
# Specifies which paths to compile per environment. | ||
defp elixirc_paths(e) when e in ~w(dev test)a, do: ["lib", "test/support"] | ||
defp elixirc_paths(_), do: ["lib"] | ||
|
||
defp deps do | ||
[ | ||
{:ecto_sql, "~> 3.4"}, | ||
{:postgrex, ">= 0.0.0"}, | ||
{:ex_machina, "~> 2.7.0"}, | ||
{:database, in_umbrella: true} | ||
] | ||
end | ||
|
||
defp aliases do | ||
[ | ||
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/ecto_repo/seeds.exs"], | ||
"ecto.reset": ["ecto.drop", "ecto.setup"], | ||
test: ["ecto.create --quiet", "ecto.migrate --quiet", "test"] | ||
] | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters