{"id":19622213,"url":"https://github.com/commercetools/project-bootstrap","last_synced_at":"2025-04-23T21:46:42.898Z","repository":{"id":212245443,"uuid":"725022086","full_name":"commercetools/project-bootstrap","owner":"commercetools","description":"A collection of files to quickly and reproducibly bootstrap commercetools projects","archived":false,"fork":false,"pushed_at":"2024-07-01T10:17:26.000Z","size":4486,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-01-03T16:08:29.395Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/commercetools.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":"2023-11-29T09:24:25.000Z","updated_at":"2024-08-07T13:37:59.000Z","dependencies_parsed_at":"2023-12-13T09:36:10.565Z","dependency_job_id":"cb0a5943-9f76-4c99-a521-dbd831e1267b","html_url":"https://github.com/commercetools/project-bootstrap","commit_stats":null,"previous_names":["commercetools/project-bootstrap"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commercetools%2Fproject-bootstrap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commercetools%2Fproject-bootstrap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commercetools%2Fproject-bootstrap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commercetools%2Fproject-bootstrap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/commercetools","download_url":"https://codeload.github.com/commercetools/project-bootstrap/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233181284,"owners_count":18637563,"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-11-11T11:26:40.575Z","updated_at":"2025-01-09T11:33:45.985Z","avatar_url":"https://github.com/commercetools.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# project-bootstrap\nA Project to quickly bootstrap new commercetools projects.\nIt currently comes in a couple of flavours.\n\n - B2C (using the B2C sample data)\n - B2B (using the B2B sample data)\n\nTo bootstrap a new project follow these simple steps:\nLet's assume you want to setup a new b2c store.\n\n1. Create a branch to avoid overriding data and also to be able to commit your .env files and terraform states\n2. Create a project in MC and create an API client\n3. Copy and paste the credentials to ./b2c/typescript/.env\n4. Run `yarn install` to install all required NPM dependencies\n5. Run `cd ./shared-code`\n6. Run `yarn run build`\n\nNow you are good to go.\n\n## Terraform\nNow it is time to run terraform.\n\n1. Run `cd ./b2c/terraform`\n2. Run `terraform init` and `terraform plan`\n3. Run `terraform apply` to apply the configuration.\n\n## Importing Data\nNow run the typescript importer files to do create product, variants, prices, inventory, categories and customers...\n\n1. `cd ../typescript`\n2. `yarn run bootstrap`\n\nThe menu will guide you from here.\n\n![import.gif](docs%2Fimport.gif)\n\nNow validate the import\n\n![validate.gif](docs%2Fvalidate.gif)\n\n## Tips \u0026 Tricks\n### Translation on Import\nThe importing process supports translation via Google Translate. All you need to do is\n 1. Login to google using `google-cli`\n 2. Configure the parameter `TRANSLATION_ENABLED=\"true\"` in your `.env` file\nSince this comes at a cost, the result from Google is stored in a JSON file to mimic a poor man's translation memory system.\n### Developing\nDuring development you might not always want to run a real import. Therefore set the flag `DRY_RUN=true` within your `.env` file.\nSince most of the magic is happening within the `./shared-folder` directory, you can run a `yarn run watch` or `yarn run test` here to continuously build or test your changes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcommercetools%2Fproject-bootstrap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcommercetools%2Fproject-bootstrap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcommercetools%2Fproject-bootstrap/lists"}