{"id":26610950,"url":"https://github.com/aldouus/phoenix_nextjs","last_synced_at":"2026-04-05T21:33:30.403Z","repository":{"id":284011157,"uuid":"953547194","full_name":"aldouus/phoenix_nextjs","owner":"aldouus","description":"Phoenix + Nextjs example app","archived":false,"fork":false,"pushed_at":"2025-03-23T16:21:23.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T17:27:03.441Z","etag":null,"topics":["elixir","nextjs","phoenix","react","tailwindcss","typescript"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aldouus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2025-03-23T16:08:46.000Z","updated_at":"2025-03-23T16:21:26.000Z","dependencies_parsed_at":"2025-03-23T17:37:43.608Z","dependency_job_id":null,"html_url":"https://github.com/aldouus/phoenix_nextjs","commit_stats":null,"previous_names":["aldouus/phoenix_nextjs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aldouus%2Fphoenix_nextjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aldouus%2Fphoenix_nextjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aldouus%2Fphoenix_nextjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aldouus%2Fphoenix_nextjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aldouus","download_url":"https://codeload.github.com/aldouus/phoenix_nextjs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245196769,"owners_count":20576083,"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":["elixir","nextjs","phoenix","react","tailwindcss","typescript"],"created_at":"2025-03-24T02:24:29.100Z","updated_at":"2025-12-30T23:28:59.726Z","avatar_url":"https://github.com/aldouus.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Phoenix + Next.js Application\n\nThis repository contains a web app built with Elixir/Phoenix for the backend and Next.js for the frontend.\n\n## Prerequisites\n\n- Elixir and Erlang installed\n- Node.js and npm/pnpm installed\n- PostgreSQL database\n\n## Setup\n\n1. Clone the repository\n2. Set up environment variables (copy .env.example to .env and fill in the values)\n3. Install dependencies:\n\n```bash\n# Install Elixir dependencies\nmix deps.get\n\n# Install Next.js dependencies\ncd app\npnpm install\ncd ..\n```\n\n4. Create and migrate the database:\n\n```bash\nmix ecto.create\nmix ecto.migrate\n```\n\n## Development\n\nDuring development, you'll run both the Phoenix server and the Next.js development server:\n\n```bash\nmix phx.server\n```\n\nThis will start:\n- Phoenix backend on http://localhost:4000\n- Next.js development server on http://localhost:3000\n\nThe Phoenix server is configured to proxy requests to the Next.js development server in development mode.\n\n## Building for Production\n\nTo build the application for production:\n\n```bash\n# Generate static assets from Next.js\nmix assets.deploy\n```\n\nThis will:\n1. Build the Next.js application\n2. Copy the static assets to Phoenix's static directory\n\n## Running in Production\n\nSet the environment variables for production and start the server:\n\n```bash\nMIX_ENV=prod PHX_SERVER=true mix phx.server\n```\n\nIn production, only the Phoenix server will run, serving both the API and the static assets on the same port (default: 4000).\n\n## Using Docker for Production\nYou can also use Docker to build and run the application in production:\n\n```bash\ndocker compose up --build\n```\n\nThis will build and start all necessary containers for the application to run in production mode.\n\n## Environment Variables\n\nCreate a `.env` file based on the `.env.example`\n\n### Generating Secrets\n\nYou can generate secure random strings for `SIGNING_SALT` and `SECRET_KEY_BASE` using:\n\n```bash\n# SECRET_KEY_BASE\nmix phx.gen.secret\n```\n\n```bash\n# SIGNING_SALT\nmix phx.gen.secret 32\n```\n\n## Project Structure\n\n- `/app` - Next.js frontend application\n- `/lib` - Phoenix backend application\n- `/priv/static` - Compiled static assets (not tracked in git)\n- `/config` - Application configuration\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faldouus%2Fphoenix_nextjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faldouus%2Fphoenix_nextjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faldouus%2Fphoenix_nextjs/lists"}