{"id":13779621,"url":"https://github.com/Albert-Gao/feathers-next-example","last_synced_at":"2025-05-11T13:30:57.329Z","repository":{"id":47786660,"uuid":"120174781","full_name":"Albert-Gao/feathers-next-example","owner":"Albert-Gao","description":"Use feathers with next.js","archived":false,"fork":false,"pushed_at":"2021-08-13T02:12:07.000Z","size":2815,"stargazers_count":43,"open_issues_count":14,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-16T09:24:14.942Z","etag":null,"topics":["feathers","javascript","nextjs"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/Albert-Gao.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}},"created_at":"2018-02-04T10:24:55.000Z","updated_at":"2024-01-21T22:10:23.000Z","dependencies_parsed_at":"2022-09-23T18:41:30.856Z","dependency_job_id":null,"html_url":"https://github.com/Albert-Gao/feathers-next-example","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/Albert-Gao%2Ffeathers-next-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Albert-Gao%2Ffeathers-next-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Albert-Gao%2Ffeathers-next-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Albert-Gao%2Ffeathers-next-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Albert-Gao","download_url":"https://codeload.github.com/Albert-Gao/feathers-next-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225056720,"owners_count":17414191,"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":["feathers","javascript","nextjs"],"created_at":"2024-08-03T18:01:07.208Z","updated_at":"2024-11-17T15:30:35.905Z","avatar_url":"https://github.com/Albert-Gao.png","language":"HTML","funding_links":[],"categories":["Resources"],"sub_categories":["Examples"],"readme":"# feathers-next-example\n\nThis is a setup about how to use `feathers` along with `next.js`.\n\n## What about the code\n\nThe `feathers` part are based on the code generated from the `feathers-cli`. Which I think should make people understand more easily(because I consider this as the official way).\n\n## Folder Structure\n\n- `client`: `next.js` part;\n- `server`: `feathers` part;\n\nIncluding some optimizing and request handling tips.\n\n## How to dev\n\nNormally, you just use `npm run server:dev`, then you can work on the server and client at the same time. It will run `feathers.js`. But any changes you made in the `./client/` part will be hot reloaded and reflect to the actual page.\n\nIf you only want to work on the client side, just call `npm run client:dev`\n\n## How to deploy\n\n1. `npm run client:build`: To bundle the production ready code.\n2. `npm run server:start:prod`: To start the server. (You might want to use `PM2` or `nodemon` here.)\n\n## How to check it works\n\n- Run the `feathers` server: `npm run server:dev`\n- Open `http://localhost:3030`, see `next` page\n- Open `http://localhost:3030/users`, see `feathers.js` error page\n- Update `./client/pages/index.js`, see the hot module reloading\n\n## Important\n\nEvery time you add a `feathers service`, make sure to add it to `feathersServices` in `./server/middleware/next.js` like this:\n\n```javascript\nconst feathersServices = {\n  '/users': true,\n};\n```\n\n## More details\n\nSee detail step by step in my [blog](http://www.albertgao.xyz/2018/02/04/how-to-do-server-side-rendering-with-feathersjs-and-nextjs/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAlbert-Gao%2Ffeathers-next-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAlbert-Gao%2Ffeathers-next-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAlbert-Gao%2Ffeathers-next-example/lists"}