{"id":13601945,"url":"https://github.com/nxpm/stack","last_synced_at":"2025-02-25T22:08:03.297Z","repository":{"id":43020792,"uuid":"298150432","full_name":"nxpm/stack","owner":"nxpm","description":"🥭 nxpm-stack lets you generate a complete and opinionated full-stack application in a Nx Workspace, ready to extend and deploy!","archived":false,"fork":false,"pushed_at":"2022-02-13T23:20:24.000Z","size":2504,"stargazers_count":108,"open_issues_count":16,"forks_count":14,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-02-18T08:04:03.449Z","etag":null,"topics":["angular","docker","full-stack","generators","graphql","nestjs","nx-workspace","prisma","schematics","stack"],"latest_commit_sha":null,"homepage":"https://npm.im/@nxpm/stack","language":"TypeScript","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/nxpm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"beeman","patreon":"beeman","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2020-09-24T02:40:04.000Z","updated_at":"2025-02-04T14:26:14.000Z","dependencies_parsed_at":"2022-09-26T20:41:03.983Z","dependency_job_id":null,"html_url":"https://github.com/nxpm/stack","commit_stats":null,"previous_names":[],"tags_count":104,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nxpm%2Fstack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nxpm%2Fstack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nxpm%2Fstack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nxpm%2Fstack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nxpm","download_url":"https://codeload.github.com/nxpm/stack/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240317335,"owners_count":19782383,"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":["angular","docker","full-stack","generators","graphql","nestjs","nx-workspace","prisma","schematics","stack"],"created_at":"2024-08-01T18:01:10.403Z","updated_at":"2025-02-25T22:08:03.122Z","avatar_url":"https://github.com/nxpm.png","language":"TypeScript","readme":"# @nxpm/stack\n\n## Introduction\n\n`@nxpm/stack` is a set of schematics that generates an opinionated full-stack application in a Nx Workspace based on the PANNG Stack (Prisma, Angular, Nest, Nx, GraphQL).\n\n## Creating a new project\n\n### Using @nxpm/cli\n\nYou can create a new workspace by installing the @nxpm/cli package globally.\n\nRun the following command:\n\n```shell script\nyarn global add @nxpm/cli\n```\n\nAfter the installation, you should have the `nxpm-stack` command available.\n\nRun the following command to create a project called 'sandbox':\n\n```shell script\nnxpm-stack init --name sandbox\ncd sandbox\n```\n\n### Manual installation\n\nAlternatively, you can create a project manually:\n\nCreate a new Nx Workspace and make sure to use the `empty` preset.\n\n```shell script\nyarn create nx-workspace sandbox --preset=empty --nx-cloud true --cli=angular\ncd sandbox\n```\n\nInstall the dependencies:\n\n```shell script\nyarn add -D @nxpm/stack @nrwl/angular @nrwl/nest\n```\n\nInitialize a new project (where web is the name of the Angular frontend):\n\n```shell script\nnx g @nxpm/stack:init web\n```\n\n## Running the project\n\nBefore you can run the stack, there are some things you need to do.\n\n### Starting the Docker server\n\nThe stack is configured to connect to a Postgres server on `localhost:5432` with a database called `prisma`, username `prisma` and password `prisma`.\n\nThere is a `docker-compose.yml` in the project root which provides this.\n\nTo start the server, run the following command:\n\n```shell script\ndocker-compose up\n```\n\n### Seed the database\n\nWhen starting with an empty database, you need to make sure the table structure gets created.\n\nTo do this, run the following command:\n\n```shell script\nyarn setup\n```\n\n### Start the API app\n\nYou can now start the API by running the following command:\n\n```shell script\nyarn dev:api\n```\n\nYou should be able to navigate to [http://localhost:3000/graphql](http://localhost:3000/graphql) and see the GraphQL Playground.\n\n### Generate the SDK\n\nOnce the API is up and running, we want to make sure we can generate the SDK that is being used by the frontend.\n\nRun the following command to generate the SDK:\n\n```shell script\nyarn sdk:web\n```\n\n### Start the Web app\n\nWith this all done, you can now start the Web by running the following command:\n\n```shell script\nyarn dev:web\n```\n\nYou should be able to navigate to [http://localhost:4200](http://localhost:4200) and see the Angular app.\n","funding_links":["https://github.com/sponsors/beeman","https://patreon.com/beeman"],"categories":["angular"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnxpm%2Fstack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnxpm%2Fstack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnxpm%2Fstack/lists"}