{"id":28036389,"url":"https://github.com/pilinux/remix-js","last_synced_at":"2025-05-11T12:55:50.093Z","repository":{"id":192133203,"uuid":"684058303","full_name":"pilinux/remix-js","owner":"pilinux","description":"Remix stack for 'backend-for-frontend' architecture.","archived":false,"fork":false,"pushed_at":"2023-12-06T01:35:46.000Z","size":533,"stargazers_count":7,"open_issues_count":3,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-11T12:55:42.918Z","etag":null,"topics":["remix","remix-run","remix-stack"],"latest_commit_sha":null,"homepage":"https://remixjs.pilinux.me","language":"JavaScript","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/pilinux.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}},"created_at":"2023-08-28T11:18:22.000Z","updated_at":"2024-10-07T18:59:41.000Z","dependencies_parsed_at":"2023-09-02T20:15:58.700Z","dependency_job_id":"4ed86591-a306-456a-a991-1317c0c95898","html_url":"https://github.com/pilinux/remix-js","commit_stats":null,"previous_names":["pilinux/remix-js"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pilinux%2Fremix-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pilinux%2Fremix-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pilinux%2Fremix-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pilinux%2Fremix-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pilinux","download_url":"https://codeload.github.com/pilinux/remix-js/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253568710,"owners_count":21928909,"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":["remix","remix-run","remix-stack"],"created_at":"2025-05-11T12:55:49.476Z","updated_at":"2025-05-11T12:55:50.082Z","avatar_url":"https://github.com/pilinux.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Remix JS\n\nBuild modern web apps using Remix and built-in browser APIs without relying too much on deprecated\ndependencies.\n\n## About this Repository\n\nThis repository serves as a comprehensive guide to building *Backend for Frontend (BFF)* web\napplications using Remix, to help create high-performance and maintainable apps. It will cover\na wide range of topics, from project setup and routing to data fetching, authentication, and\ndeployment.\n\n## Walkthrough\n\n- Home: `app/routes/_index.jsx`\n- Set Session: `app/routes/session-set.jsx`\n- Delete Session: `app/routes/session-delete.jsx`\n- Set Cookie: `app/routes/cookie-set.jsx`\n- Delete Cookie: `app/routes/cookie-delete.jsx`\n- Remote API Status [HTTP GET]: `app/routes/status/index.jsx`\n- Login [HTTP POST]: `app/routes/login/index.jsx`\n- Logout [HTTP POST]: `app/routes/logout/index.jsx`\n- Test JWT [HTTP GET]: `app/routes/protected/index.jsx`\n\n### Note\n\n- Password handling in this repo code: `user pass` -\u003e `sha2 (client-side)` -\u003e\n  `sha3 (remix server-side)` -\u003e `argon2id (in the database)`\n\n### Demo App\n\nLink: [remixjs.pilinux.me](https://remixjs.pilinux.me)\n\n### Demo User for Testing Auth\n\n- Email: `apidev-no-reply@pilinux.me`\n- Password: `1234.Abc!`\n\n# Welcome to Remix!\n\n- [Remix Docs](https://remix.run/docs)\n\n## Development\n\nFrom your terminal:\n\n```sh\nnpm run dev\n```\n\nThis starts your app in development mode, rebuilding assets on file changes.\n\n## Deployment\n\nFirst, build your app for production:\n\n```sh\nnpm run build\n```\n\nThen run the app in production mode:\n\n```sh\nnpm start\n```\n\nNow you'll need to pick a host to deploy it to.\n\n### DIY\n\nIf you're familiar with deploying node applications, the built-in Remix app server is production-ready.\n\nMake sure to deploy the output of `remix build`\n\n- `build/`\n- `public/build/`\n\n### Using a Template\n\nWhen you ran `npx create-remix@latest` there were a few choices for hosting. You can run that again to create a new project, then copy over relevant code/assets from your current app to the new project that's pre-configured for your target server.\n\nMost importantly, this means everything in the `app/` directory, but if you've further customized your current application outside of there it may also include:\n\n- Any assets you've added/updated in `public/`\n- Any updated versions of root files such as `.eslintrc.js`, etc.\n\n```sh\ncd ..\n# create a new project, and pick a pre-configured host\nnpx create-remix@latest\ncd my-new-remix-app\n# remove the new project's app (not the old one!)\nrm -rf app\n# copy your app over\ncp -R ../my-old-remix-app/app app\n```\n\n### Using Docker\n\n`docker-compose.yml`\n\n```\n# syntax=docker/dockerfile:1\n\nversion: '3.9'\nname: remix\nservices:\n  myapp:\n    image: node:20.5.1-bookworm\n    container_name: myapp\n    working_dir: /app\n    restart: unless-stopped:10s\n    command: sh -c \"npm ci \u0026\u0026 npm run build \u0026\u0026 npm run start\"\n    ports:\n      - '127.0.0.1:3000:3000'\n    volumes:\n      - ./myapp:/app\n```\n\n`.env`\n\n```\nHOST=0.0.0.0\nNODE_ENV=production\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpilinux%2Fremix-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpilinux%2Fremix-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpilinux%2Fremix-js/lists"}