{"id":18557128,"url":"https://github.com/viniciusilveira/blog-api","last_synced_at":"2025-09-19T10:52:14.296Z","repository":{"id":49868907,"uuid":"324148509","full_name":"viniciusilveira/blog-api","owner":"viniciusilveira","description":null,"archived":false,"fork":false,"pushed_at":"2021-06-10T12:52:57.000Z","size":71,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-17T11:35:01.206Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/viniciusilveira.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"contributing.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-24T12:12:45.000Z","updated_at":"2021-11-23T19:31:54.000Z","dependencies_parsed_at":"2022-09-01T14:03:22.354Z","dependency_job_id":null,"html_url":"https://github.com/viniciusilveira/blog-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viniciusilveira%2Fblog-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viniciusilveira%2Fblog-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viniciusilveira%2Fblog-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viniciusilveira%2Fblog-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/viniciusilveira","download_url":"https://codeload.github.com/viniciusilveira/blog-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254349467,"owners_count":22056353,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T21:34:40.458Z","updated_at":"2025-09-19T10:52:09.248Z","avatar_url":"https://github.com/viniciusilveira.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blog\n\nAplication to management Blog posts.\n\n\u003e Elixir, Erlang, Postgres.\n\n---\n\n\n## Instalation guide\n\nClone project:\n  1. `git clone git@github.com:viniciusilveira/blog.git`\n  2. `cd blog`\n\n## Requisites\n\n- `Elixir 1.11`\n- `Erlang 23.0`\n- `PostgreSQL 9.6+`\n\n#### 1. Install Postgres\n\n\u003e OsX:\n\n  ```bash\n  brew install postgres\n  ```\n\n\u003e Ubuntu:\n\n  ```bash\n  sudo apt update\n  sudo apt install postgresql postgresql-contrib\n  ```\n\n#### 2. Install Erlang and Elixir\n\nFollow instructions from the [installation guide](https://github.com/asdf-vm/asdf#setup) to install asdf.\n\nAnd using `asdf` to install `Elixir` and `Erlang`:\n\n  ```bash\n  asdf plugin-add erlang https://github.com/asdf-vm/asdf-erlang.git\n  asdf plugin-add elixir https://github.com/asdf-vm/asdf-elixir.git\n\n  asdf install erlang 23.0\n  asdf install elixir 1.11.2\n  ```\n\nSet global versions:\n\n  ```bash\n  asdf global erlang 23.0\n  asdf global elixir 1.11.2\n  ```\n\n#### 3. Database Settings\n\nDuplicate files `dev.secret.exs.example` and `test.secret.exs.example`:\n\n  ```bash\n  cd blog\n  cp config/db/dev.secret.exs.example config/db/dev.secret.exs\n  cp config/db/test.secret.exs.example config/db/test.secret.exs\n  ```\nconfigure database user and password settings;\n\ncreate database:\n\n  ```bash\n  mix ecto.create\n  mix ecto.migrate\n  ```\nInstall dependencies:\n\n  ```bash\n  mix deps.get\n  ```\n\n#### 4. Execute Application\n\nRun server with:\n\n  ```bash\n  mix phx.server\n  ```\n\nNow you phoenix application is running in `http://localhost:4000`;\n\n#### 5. Tests\n\nrun:\n\n  ```bash\n  mix test\n  ```\n\n## Install with docker\n\n\n#### 1. Duplicate files `dev.secret.exs.example` and `test.secret.exs.example`:\n\n  ```bash\n  cd blog\n  cp config/db/dev.secret.exs.example config/db/dev.secret.exs\n  cp config/db/test.secret.exs.example config/db/test.secret.exs\n  ```\n\nChanges hostname to `\"db\"`\n\n#### 2. Build and up application:\n\n```bash\ndocker-compose build\ndocker-compose up\n```\n\nNow you phoenix application is running in http://localhost:4000;\n\n#### 3. Run tests\n\n```bash\ndocker-compose run web mix test\n```\n## Contribute\n\nContributions are always welcome!\nPlease read the [contribution guidelines](contributing.md) first.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviniciusilveira%2Fblog-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fviniciusilveira%2Fblog-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviniciusilveira%2Fblog-api/lists"}