{"id":18614868,"url":"https://github.com/andrewjbateman/nx-next-express","last_synced_at":"2026-05-03T01:33:29.678Z","repository":{"id":96860840,"uuid":"400544882","full_name":"AndrewJBateman/nx-next-express","owner":"AndrewJBateman","description":":clipboard: Nx monorepo with Express to display API data using Next.js","archived":false,"fork":false,"pushed_at":"2021-10-24T18:58:38.000Z","size":732,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-07T07:02:59.177Z","etag":null,"topics":["api-rest","cypress-tests","express","express-middleware","monorepo","nextjs","nx","nx-workspace","react","typescript"],"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/AndrewJBateman.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":"2021-08-27T14:57:00.000Z","updated_at":"2025-05-16T05:31:09.000Z","dependencies_parsed_at":"2023-05-29T14:15:50.159Z","dependency_job_id":null,"html_url":"https://github.com/AndrewJBateman/nx-next-express","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AndrewJBateman/nx-next-express","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fnx-next-express","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fnx-next-express/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fnx-next-express/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fnx-next-express/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndrewJBateman","download_url":"https://codeload.github.com/AndrewJBateman/nx-next-express/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fnx-next-express/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32555839,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T00:31:16.350Z","status":"ssl_error","status_checked_at":"2026-05-03T00:31:15.546Z","response_time":132,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["api-rest","cypress-tests","express","express-middleware","monorepo","nextjs","nx","nx-workspace","react","typescript"],"created_at":"2024-11-07T03:27:15.901Z","updated_at":"2026-05-03T01:33:29.665Z","avatar_url":"https://github.com/AndrewJBateman.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# :zap: Nx Next Express\n\n* Nx monorepo with Express to display API data using Next.js\n* Code from the great [Jack Herrington](https://www.youtube.com/channel/UC6vRUjYqDuoUsYsku86Lrsw) with my modifications/additions\n* **Note:** to open web links in a new window use: _ctrl+click on link_\n\n![GitHub repo size](https://img.shields.io/github/repo-size/AndrewJBateman/nx-next-express?style=plastic)\n![GitHub pull requests](https://img.shields.io/github/issues-pr/AndrewJBateman/nx-next-express?style=plastic)\n![GitHub Repo stars](https://img.shields.io/github/stars/AndrewJBateman/nx-next-express?style=plastic)\n![GitHub last commit](https://img.shields.io/github/last-commit/AndrewJBateman/nx-next-express?style=plastic)\n\n## :page_facing_up: Table of contents\n\n* [:zap: Nx Next Express](#zap-nx-next-express)\n  * [:page_facing_up: Table of contents](#page_facing_up-table-of-contents)\n  * [:books: General info](#books-general-info)\n  * [:camera: Screenshots](#camera-screenshots)\n  * [:signal_strength: Technologies](#signal_strength-technologies)\n  * [:floppy_disk: Setup](#floppy_disk-setup)\n  * [:computer: Code Examples](#computer-code-examples)\n  * [:cool: Features](#cool-features)\n  * [:clipboard: Status \u0026 To-do list](#clipboard-status--to-do-list)\n  * [:clap: Inspiration](#clap-inspiration)\n  * [:file_folder: License](#file_folder-license)\n  * [:envelope: Contact](#envelope-contact)\n\n## :books: General info\n\n* **Note:** to be able to generate the next app, @nrwl/next and @nrwl/workspace must have the same version\n\n## :camera: Screenshots\n\n![Frontend screenshot](./imgs/data.png)\n\n## :signal_strength: Technologies\n\n* [Nx v12](https://nx.dev) build framework used to create project workspace\n* [Express v4](https://expressjs.com/) framework\n* [Next.js v10](https://nextjs.org/) React framework for production\n* [@nrwl/next v12](https://www.npmjs.com/package/@nrwl/next) - v12.3.3 used - **not** latest v12.8.0\n* [Tailwind CSS v2](https://tailwindcss.com/) styles\n\n## :floppy_disk: Setup\n\n* `npm i` to install dependencies\n* `npm start api` for a frontend dev server on `http://localhost:4200/`\n* `npm start next-data` to start app on server `localhost:4200`\n* `nx run next-data-e2e:e2e` to run e2e testing on server `localhost:4200`\n* `npx nx e2e next-data-e2e --watch` to launch Cypress in \"watch mode\"\n\n## :wrench: Testing\n\n* `next-data-e2e` Cypress testing added and all tests pass\n\n## :computer: Code Examples\n\n* `index.tsx` template markup to display API data using map method and list\n\n```tsx\nreturn (\n    \u003cdiv className={styles.page}\u003e\n      \u003cinput value={search} onChange={onSetSearch} /\u003e\n      \u003cul\u003e\n        {pokemon.map(({ id, name: { french }, type, base: { defense } }) =\u003e (\n          \u003cli key={id}\u003e\n            {french}. Type: {type}. Defence Score: {defense}\n          \u003c/li\u003e\n        ))}\n      \u003c/ul\u003e\n    \u003c/div\u003e\n  );\n```\n\n## :cool: Features\n\n* Monorepo shared libraries etc. makes for tidier code\n* Cypress stores test screenshot in `dist\\cypress\\apps\\next-data-e2e\\screenshots\\app.spec.ts\\next-data`\n\n## :clipboard: Status, To-Do List\n\n* Status: Working. Tailwind CSS added.\n* To-Do: test Tailwind CSS purge for build, change datafile,\n\n## :clap: Inspiration/General Tools\n\n* [Dreevo: Angular Production - Build, Test \u0026 Deploy a Full Stack Application using Nx - Part I](https://www.youtube.com/watch?v=j38ufd8Q86w\u0026t=119s)\n* [Juri.dev: Setup Next.js to use Tailwind with Nx](https://juristr.com/blog/2021/06/setup-tailwind-nextjs-and-nx/)\n* [Nx documentation](https://nx.dev/angular)\n* [Github solution: Next plugin is importing a function from a wrong path #4731](https://github.com/nrwl/nx/issues/4731)\n\n## :file_folder: License\n\n* N/A\n\n## :envelope: Contact\n\n* Repo created by [ABateman](https://github.com/AndrewJBateman), email: gomezbateman@yahoo.com","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fnx-next-express","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewjbateman%2Fnx-next-express","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fnx-next-express/lists"}