{"id":13533995,"url":"https://github.com/Axolodev/next-appwrite-users","last_synced_at":"2025-04-01T22:31:08.130Z","repository":{"id":78221895,"uuid":"548825534","full_name":"Axolodev/next-appwrite-users","owner":"Axolodev","description":"App that showcases how to use Next.js with Appwrite as its backend","archived":false,"fork":false,"pushed_at":"2022-10-23T22:37:06.000Z","size":318,"stargazers_count":7,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T14:36:05.002Z","etag":null,"topics":["appwrite","nextjs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/Axolodev.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}},"created_at":"2022-10-10T08:38:43.000Z","updated_at":"2024-09-20T00:18:35.000Z","dependencies_parsed_at":"2023-07-14T22:17:20.107Z","dependency_job_id":null,"html_url":"https://github.com/Axolodev/next-appwrite-users","commit_stats":null,"previous_names":["robruizr/next-appwrite-users"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Axolodev%2Fnext-appwrite-users","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Axolodev%2Fnext-appwrite-users/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Axolodev%2Fnext-appwrite-users/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Axolodev%2Fnext-appwrite-users/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Axolodev","download_url":"https://codeload.github.com/Axolodev/next-appwrite-users/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246720472,"owners_count":20822911,"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":["appwrite","nextjs"],"created_at":"2024-08-01T07:01:25.170Z","updated_at":"2025-04-01T22:31:07.824Z","avatar_url":"https://github.com/Axolodev.png","language":"TypeScript","readme":"# Appwrite Next.js Authentication\n\nNext.JS App that uses Appwrite as its backend. It features:\n\n- A simple signup and login flow, powered by [Appwrite's web SDK](https://www.npmjs.com/package/appwrite)\n- Two API routes that handle User data. Both routes require authorization which is done through [Appwrite's Node SDK](https://www.npmjs.com/package/node-appwrite). More about them on [API Routes](#api-routes)\n\n## Setup\n\n### Installing dependencies\n\nClone this repository and install its dependencies:\n\n```bash\n  # npm\n  npm install\n  # or yarn\n  yarn\n```\n\n### Setting up Environment Variables\n\nCreate a `.env.local` file based on the `.env.local.example` file included in the project. It should have the following values:\n\n| Value                           | Description                                                                                                                                                                            | Example                      |\n| ------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- |\n| NEXT_PUBLIC_APPWRITE_HOSTNAME   | The URL where your Appwrite server is hosted. Include the protocol and no trailing slash                                                                                               | https://appwrite.example.com |\n| NEXT_PUBLIC_APPWRITE_PROJECT_ID | Your Project ID generated by Appwrite. You can get it from `Your Project \u003e Settings \u003e Project ID` ([Screenshot](/gitAssets/screenshot-1.png))                                          | abc123abc123                 |\n| APPWRITE_SECRET_API_KEY         | An API Key with permissions for `users.read` and `users.write`. ([Screenshot](/gitAssets/screenshot-2.png))                                                                            | abcasdfpojo123432            |\n| ADMIN_TEAM_ID                   | A team where all your users with Admin rights will be included. You can find the ID on `Authentication \u003e Teams \u003e Select a team \u003e Team ID`. ([Screenshot](/gitAssets/screenshot-3.png)) | 863451289065430265436        |\n\n### Launching the project\n\nRun the project by using\n\n```bash\nnpm run dev\n# Or\nyarn dev\n```\n\n## API Routes\n\n| Route        | Description                                                                                               | Requirements                                                                                                                                                                                                      |\n| ------------ | --------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| users/all    | Gets an array with all the users that have registered in the app.                                         | User needs to be authenticated and part of the Admin team. Refer to [Setting up Environment Variables](#setting-up-environment-variables) for more information.                                                   |\n| users/\\[id\\] | Gets a single user based on their ID. If using `me` as the id, it will return the current user's profile. | User needs to be authenticated to get their own profile, or to be part of the Admin team to get other users. Refer to [Setting up Environment Variables](#setting-up-environment-variables) for more information. |\n\n## Support\n\nIf you need help with this app or found a bug, you can submit an issue on the Issues tab or by messaging me on Twitter [@Axolodev](https://twitter.com/axolodev)\n\n## Screenshots\n\n![Simple login page with email and password fields](/gitAssets/app_screenshot-1.png)\n![User list on the home page. Every user has their name, email, and a link to their profile page.](/gitAssets/app_screenshot-2.png)\n![Very simple user profile. Just the user's name, email, and their first initial](/gitAssets/app_screenshot-3.png)\n","funding_links":[],"categories":["Showcase (Built with Appwrite 📣)"],"sub_categories":["React"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAxolodev%2Fnext-appwrite-users","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAxolodev%2Fnext-appwrite-users","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAxolodev%2Fnext-appwrite-users/lists"}