{"id":20857570,"url":"https://github.com/openlayers/create-ol-app","last_synced_at":"2025-05-12T08:30:55.641Z","repository":{"id":37857389,"uuid":"379984760","full_name":"openlayers/create-ol-app","owner":"openlayers","description":"Set up a new OpenLayers based application","archived":false,"fork":false,"pushed_at":"2024-11-01T03:22:19.000Z","size":177,"stargazers_count":24,"open_issues_count":3,"forks_count":5,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-11-01T04:16:32.909Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openlayers.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}},"created_at":"2021-06-24T16:17:00.000Z","updated_at":"2024-11-01T03:21:20.000Z","dependencies_parsed_at":"2023-02-08T03:45:56.783Z","dependency_job_id":null,"html_url":"https://github.com/openlayers/create-ol-app","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openlayers%2Fcreate-ol-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openlayers%2Fcreate-ol-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openlayers%2Fcreate-ol-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openlayers%2Fcreate-ol-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openlayers","download_url":"https://codeload.github.com/openlayers/create-ol-app/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225130470,"owners_count":17425506,"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-18T04:41:10.267Z","updated_at":"2024-11-18T04:41:10.911Z","avatar_url":"https://github.com/openlayers.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# create-ol-app\n\nThe `create-ol-app` program sets up a project directory with the dependencies required for developing an OpenLayers application.  The program requires `npx`, distributed with [Node](https://nodejs.org/) (at least version 12), and [`git`](https://github.com/git-guides/install-git).\n\nUsing `create-ol-app` saves you from having to set up or configure tools like Vite, webpack, or Parcel.  After setting up a new OpenLayers application, you can proceed with configuring the development environment to your liking – the `create-ol-app` program sets up the required tools, but doesn't lock you in to any specific configuration.\n\n## Creating a new application\n\nTo create a new OpenLayers application, choose a name for your application (`my-app` below) and run the following:\n\n    npx create-ol-app my-app\n\n*🐛  If you get an error like \"could not find commit hash\" when running `create-ol-app`, make sure that you have [`git` installed](https://github.com/git-guides/install-git)*.\n\nThis will create a new directory called `my-app` (choose a different name if you like) and install the dependencies for OpenLayers application development.  By default, [Vite](https://vitejs.dev/) is used for development and bundling.  See below for other options.\n\n*💡 Tip – if you run `npx create-ol-app` with no additional arguments, the new application will be set up in the current directory.*\n\nAfter the step above completes, you can change into your new application directory and start a development server:\n\n    cd my-app\n    npm start\n\nSee the `my-app/readme.md` for more detail on working with the new application.\n\n### Choosing a bundler\n\nThe `create-ol-app` program supports a few different module bundlers.  By default, an application is set up using [Vite](https://vitejs.dev/).  To use a different bundler, pass the `--template` option to `create-ol-app`.\n\nThe default template uses Vite.  This is equivalent to running the following:\n\n    npx create-ol-app my-app --template vite\n\nTo see what other templates are available, see the help output for the `create-ol-app` program:\n\n    npx create-ol-app --help\n\nTo use webpack instead of Vite, run the following:\n\n    npx create-ol-app my-app --template webpack\n\nAfter creating a new application, see the included `readme.md` for more details on getting started.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenlayers%2Fcreate-ol-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenlayers%2Fcreate-ol-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenlayers%2Fcreate-ol-app/lists"}