https://github.com/typicms/places
https://github.com/typicms/places
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/typicms/places
- Owner: TypiCMS
- License: mit
- Created: 2014-11-30T21:37:56.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2025-06-06T09:30:41.000Z (about 1 year ago)
- Last Synced: 2025-06-06T10:35:05.660Z (about 1 year ago)
- Language: PHP
- Size: 308 KB
- Stars: 2
- Watchers: 3
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# Places
Manage places and show them on a map.
## Installation
1. Require the package using composer:
```bash
composer require typicms/places
```
2. Add the service provider in your config/app.php file:
```
'providers' => [
/*
* TypiCMS Modules Service Providers.
*/
TypiCMS\Modules\Places\Providers\ModuleServiceProvider::class,
];
```
3. Publish files from this module to your project, run:
```bash
php artisan vendor:publish --provider="TypiCMS\Modules\Places\Providers\ModuleServiceProvider"
```
4. Run the migration:
```bash
php artisan migrate
```
5. Set a Google Maps API key in your .env file.
See [Google Maps Platform](https://developers.google.com/maps/documentation/javascript/get-api-key).
6. Install @googlemaps/markerclusterer and :
```bash
bun add @googlemaps/markerclusterer --dev
bun add @types/google.maps --dev
```
7. Uncomment the following lines in `/resources/js/public.js`:
```js
import initMap from './public/map';
window.initMap = initMap;
```
8. Add this line to the `/resources/scss/public.scss` file:
```scss
@import 'public/map';
```
9. Run `bun run dev` to compile the assets.
10. Connect to the admin panel, add some places, create a page linked to the module Places and visit this page to see
the places on a map.
This module is part of [TypiCMS](https://github.com/TypiCMS/Base), a multilingual CMS based on
the [Laravel framework](https://github.com/laravel/framework).