{"id":22021025,"url":"https://github.com/s-damian/phoenix-crud-example","last_synced_at":"2025-10-11T06:31:12.589Z","repository":{"id":136122645,"uuid":"589010292","full_name":"s-damian/phoenix-crud-example","owner":"s-damian","description":"CRUD - Phoenix Framework / Elixir / MySQL / Tailwind","archived":false,"fork":false,"pushed_at":"2023-01-28T13:52:36.000Z","size":372,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-04T10:11:12.281Z","etag":null,"topics":["crud","elixir","elixir-phoenix","mariadb","mysql","phoenix","phoenix-framework","tailwindcss"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/s-damian.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-14T19:13:12.000Z","updated_at":"2025-01-14T13:55:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"f6fdcedf-7e2b-46b3-873a-41bade90ce64","html_url":"https://github.com/s-damian/phoenix-crud-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/s-damian/phoenix-crud-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s-damian%2Fphoenix-crud-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s-damian%2Fphoenix-crud-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s-damian%2Fphoenix-crud-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s-damian%2Fphoenix-crud-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/s-damian","download_url":"https://codeload.github.com/s-damian/phoenix-crud-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s-damian%2Fphoenix-crud-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279006456,"owners_count":26084108,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["crud","elixir","elixir-phoenix","mariadb","mysql","phoenix","phoenix-framework","tailwindcss"],"created_at":"2024-11-30T06:09:08.347Z","updated_at":"2025-10-11T06:31:12.575Z","avatar_url":"https://github.com/s-damian.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003ca href=\"https://github.com/s-damian/phoenix-crud-example\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/s-damian/medias/main/technos-logos/phoenix.jpg\"\u003e\n\u003c/a\u003e\n\u003c/p\u003e\n\n# Example of CRUD with Phoenix 1.7 / Elixir\n\nThis example is made by [Stephen Damian](https://github.com/s-damian)\n\n## Requirements\n\n* Elixir \u003e= 1.14\n* Erlang \u003e= 24\n\n## Introduction\n\nThis is an example of CRUD with: **Phoenix Framework** / **MySQL** / **Tailwind CSS**\n\nIn this example, there is :\n\n* An example of an articles controller (for an HTML resource).\n* An example of a products controller (for LiveView).\n\n## Configuration - Phoenix App\n\nClone github repository:\n\n```\ngit clone git@github.com:s-damian/phoenix-crud-example.git\n```\n\nIn terminal, position yourself in the ```phoenix-crud-example``` directory:\n\n```\ncd /your_path/phoenix-crud-example\n```\n\nIn ```config/dev.exs```, configure your database credentials. (For security reasons: in a production context, you must use environment variables. You should never put database credentials directly in the versioned code).\n\nInstall dependencies:\n\n```\nmix deps.get\n```\n\nCreate the database (MySQL / MariaDB):\n\n```\nmix ecto.create\n```\n\nRun migrations:\n\n```\nmix ecto.migrate\n```\n\n## You can run the server, and you can run these demo URLs\n\n### Run the server\n\n```\nmix phx.server\n```\n\nHere is an example of Virtual Host (Reverse Proxy) with Nginx: [Nginx Vhost for Phoenix](https://github.com/s-damian/phoenix-crud-example/blob/main/_nginx/vhost-example.conf)\n\n### Run demo URLs\n\n#### For example of an articles controller (for an HTML resource)\n\n* http://127.0.0.1:4000/articles\n\n* http://127.0.0.1:4000/articles/new\n\n#### For example of a products controller (for LiveView)\n\n* http://127.0.0.1:4000/products\n\n* http://127.0.0.1:4000/products/new\n\nAnd you can **Create** / **Read** (listing or show a single article) / **Update** / **Delete** articles.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs-damian%2Fphoenix-crud-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fs-damian%2Fphoenix-crud-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs-damian%2Fphoenix-crud-example/lists"}