{"id":18049634,"url":"https://github.com/alextim/nest-test-app","last_synced_at":"2025-04-05T06:15:21.102Z","repository":{"id":92114019,"uuid":"577489744","full_name":"alextim/nest-test-app","owner":"alextim","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-15T05:54:58.000Z","size":4047,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T17:51:40.535Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/alextim.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-12T21:18:11.000Z","updated_at":"2023-03-09T19:57:00.000Z","dependencies_parsed_at":"2023-12-15T06:52:52.915Z","dependency_job_id":null,"html_url":"https://github.com/alextim/nest-test-app","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/alextim%2Fnest-test-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alextim%2Fnest-test-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alextim%2Fnest-test-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alextim%2Fnest-test-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alextim","download_url":"https://codeload.github.com/alextim/nest-test-app/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247294567,"owners_count":20915341,"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":[],"created_at":"2024-10-30T21:08:18.730Z","updated_at":"2025-04-05T06:15:21.063Z","avatar_url":"https://github.com/alextim.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NestJS + Mongoose + MongoDB Starter Template\n\n## setup\n\n```env\nSESSION_COOKIE_DOMAIN=.example.com\n```\nor leave it empty\n```env\nSESSION_COOKIE_DOMAIN=\n```\n\n\nhttps://github.com/zainuddin25/NestJS-Rest-API/blob/main/src/health/health.controller.ts\nhttps://github.com/gabrielmaialva33/base-nest-api/blob/master/src/modules/health/health.controller.ts\n\n\nduplicate primary column https://github.com/nestjsx/crud/issues/777\n\n=================================================================\n\n\nhttps://github.com/mwanago/nestjs-server-sessions\nhttps://dev.to/nestjs/setting-up-sessions-with-nestjs-passport-and-redis-210\n\n\nhttps://betterprogramming.pub/nest-js-project-with-typeorm-and-postgres-ce6b5afac3be\nThis is a template for a simple To Do List web app that consists of a REST API and a simple front end UI.\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"screenshot.png\" width=\"90%\" /\u003e\u003c/p\u003e\n\nThe app uses [NextJS](https://nextjs.com) as the foundation that provides the REST API back end and also serves the static front end.\n[Mongoose](https://mongoosejs.com) is used to define the data model and interfaces to the [MongoDB](https://mongodb.com) database.\n\n## Using this Starter Template\n\nThis repo can be used as an [Adaptable.io](https://adaptable.io) Starter.\nFor instructions on using this repo as a template and deploying to the Adaptable Cloud in just a few clicks, check out the [Starter Guide](https://adaptable.io/docs/starters/nestjs-mongo-starter).\n\n## Running a local dev environment\n\nAll of the following instructions assume you are in the repo root directory.\n\n### 1. Install Node.js modules\n\n```console\nyarn\n```\n\n### 2. Run MongoDB locally\n\nThe app requires a database to store the data for the REST API.\nYou can run a MongoDB cluster on your local development system if you have Docker installed.\n\nTo run a MongoDB cluster using Docker:\n\n```console\nyarn run mongo-start\n```\n\nTo later stop the MongoDB cluster:\n\n\u003e **WARNING**: All data stored in the local cluster will be deleted when the container is stopped.\n\u003e For information on persisting the database data, see [the MongoDB Docker README](https://github.com/docker-library/docs/blob/master/mongo/README.md#where-to-store-data).\n\n```console\nyarn run mongo-stop\n```\n\n### 3. Start the app (watch mode)\n\n```console\nyarn run start:dev\n```\n\n\u003e **NOTE**: By default, the app listens on port 3000. To use a different port, set the `PORT` environment variable to the desired port number.\n\n### 4. Connect to your app\n\nUse a web browser to connect to [http://localhost:3000](http://localhost:3000)\n\n## Running in production\n\n### 1. Set DATABASE_URL\n\nThe app uses the environment variable `DATABASE_URL` to connect to your MongoDB instance.\nEnsure that `DATABASE_URL` is set to the URL for your MongoDB cluster.\n\n### 2. Build\n\n```console\nyarn run build\n```\n\n### 3. Run\n\n```console\nyarn run start\n```\n\n## Testing\n\n```console\n# unit tests\nyarn run test\n\n# e2e tests\nyarn run test:e2e\n\n# test coverage\nyarn run test:cov\n```\n\n## Source Code\n\n### REST API (back end)\n\nThis project follows the NestJS conventions for file and directory structure.\nThe implementation of the `/todos` REST API endpoint can be found in `src/todoitems/`.\n\n### Web UI (front end)\n\nThe layout and static portions of the front end can be found in `public/index.html`\nThe dynamic part of the front end is in `public/js/client.js`.\n\n\u003cp align=\"center\"\u003e\u003ca href=\"https://adaptable.io\"\u003e\u003cimg src=\"https://adaptable.io/img/color lockup.svg\" height=\"50px\" alt=\"Adaptable.io\" /\u003e\u003c/a\u003e\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falextim%2Fnest-test-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falextim%2Fnest-test-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falextim%2Fnest-test-app/lists"}