Skip to content

Commit 1892b99

Browse files
authored
chore: update README per template (#27)
* chore: update README per template * add CoC
1 parent 6bfdac6 commit 1892b99

File tree

2 files changed

+116
-12
lines changed

2 files changed

+116
-12
lines changed

CODE_OF_CONDUCT.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Google Open Source Community Guidelines
2+
3+
At Google, we recognize and celebrate the creativity and collaboration of open
4+
source contributors and the diversity of skills, experiences, cultures, and
5+
opinions they bring to the projects and communities they participate in.
6+
7+
Every one of Google's open source projects and communities are inclusive
8+
environments, based on treating all individuals respectfully, regardless of
9+
gender identity and expression, sexual orientation, disabilities,
10+
neurodiversity, physical appearance, body size, ethnicity, nationality, race,
11+
age, religion, or similar personal characteristic.
12+
13+
We value diverse opinions, but we value respectful behavior more.
14+
15+
Respectful behavior includes:
16+
17+
* Being considerate, kind, constructive, and helpful.
18+
* Not engaging in demeaning, discriminatory, harassing, hateful, sexualized, or
19+
physically threatening behavior, speech, and imagery.
20+
* Not engaging in unwanted physical contact.
21+
22+
Some Google open source projects [may adopt][] an explicit project code of
23+
conduct, which may have additional detailed expectations for participants. Most
24+
of those projects will use our [modified Contributor Covenant][].
25+
26+
[may adopt]: https://opensource.google/docs/releasing/preparing/#conduct
27+
[modified Contributor Covenant]: https://opensource.google/docs/releasing/template/CODE_OF_CONDUCT/
28+
29+
## Resolve peacefully
30+
31+
We do not believe that all conflict is necessarily bad; healthy debate and
32+
disagreement often yields positive results. However, it is never okay to be
33+
disrespectful.
34+
35+
If you see someone behaving disrespectfully, you are encouraged to address the
36+
behavior directly with those involved. Many issues can be resolved quickly and
37+
easily, and this gives people more control over the outcome of their dispute.
38+
If you are unable to resolve the matter for any reason, or if the behavior is
39+
threatening or harassing, report it. We are dedicated to providing an
40+
environment where participants feel welcome and safe.
41+
42+
## Reporting problems
43+
44+
Some Google open source projects may adopt a project-specific code of conduct.
45+
In those cases, a Google employee will be identified as the Project Steward,
46+
who will receive and handle reports of code of conduct violations. In the event
47+
that a project hasn’t identified a Project Steward, you can report problems by
48+
49+
50+
We will investigate every complaint, but you may not receive a direct response.
51+
We will use our discretion in determining when and how to follow up on reported
52+
incidents, which may range from not taking action to permanent expulsion from
53+
the project and project-sponsored spaces. We will notify the accused of the
54+
report and provide them an opportunity to discuss it before any action is
55+
taken. The identity of the reporter will be omitted from the details of the
56+
report supplied to the accused. In potentially harmful situations, such as
57+
ongoing harassment or threats to anyone's safety, we may take action without
58+
notice.
59+
60+
*This document was adapted from the [IndieWeb Code of Conduct][] and can also
61+
be found at <https://opensource.google/conduct/>.*
62+
63+
[IndieWeb Code of Conduct]: https://indieweb.org/code-of-conduct

README.md

Lines changed: 53 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,34 @@
1-
# ☀️ Solar Potential demo
1+
[![Build](https://github.com/googlemaps-samples/js-solar-potential/actions/workflows/build.yml/badge.svg)](https://github.com/googlemaps-samples/js-solar-potential/actions/workflows/build.yml)
2+
[![Tests](https://github.com/googlemaps-samples/js-solar-potential/actions/workflows/tests.yml/badge.svg)](https://github.com/googlemaps-samples/js-solar-potential/actions/workflows/tests.yml)
3+
4+
![Contributors](https://img.shields.io/github/contributors/googlemaps-samples/js-solar-potential?color=green)
5+
[![License](https://img.shields.io/github/license/googlemaps-samples/js-solar-potential?color=blue)][license]
6+
[![StackOverflow](https://img.shields.io/stackexchange/stackoverflow/t/google-maps?color=orange&label=google-maps&logo=stackoverflow)](https://stackoverflow.com/questions/tagged/google-maps)
7+
[![Discord](https://img.shields.io/discord/676948200904589322?color=6A7EC2&logo=discord&logoColor=ffffff)][Discord server]
28

3-
> _This is not an officially supported Google product._
9+
# ☀️ Solar Potential demo
410

5-
The [Solar API](https://developers.google.com/maps/documentation/solar/overview)
6-
offers many benefits to solar marketplace websites, solar installers, and solar SaaS designers.
11+
## Description
712

8-
This is a demo app that showcases and displays the information from the Solar API into a map.
13+
This repository provides a sample app demonstrating use of the **[Solar API]**. The Solar API offers many benefits to solar marketplace websites, solar installers, and solar SaaS designers.
914

10-
## Before you begin
15+
The demo app showcases and displays the information from the Solar API on a map.
1116

12-
You need a Google Cloud project with a billing account and the Maps JavaScript API and Solar API enabled.
17+
## Requirements
1318

14-
To learn more, see [Set up in Cloud Console](https://developers.google.com/maps/documentation/javascript/cloud-setup).
19+
To run the samples, you will need:
1520

16-
Additionally, you need a development environment with [Node.js](https://nodejs.org/en) installed.
21+
- To [sign up with Google Maps Platform]
22+
- A Google Maps Platform [project] with the **Maps JavaScript and Solar APIs** enabled
23+
- An [API key] associated with the project above
24+
- Current version of Node.js and NPM
1725

1826
## Google Maps API key
1927

20-
This app requires a Google Maps API key to work, follow the [Use API Keys](https://developers.google.com/maps/documentation/javascript/get-api-key) guide to create a new one.
21-
2228
Once you have your API key, update the [`.env`](.env) file with your key.
2329

2430
```sh
25-
VITE_GOOGLE_MAPS_API_KEY="My Google Maps API key"
31+
VITE_GOOGLE_MAPS_API_KEY="YOUR_API_KEY"
2632
```
2733

2834
## Running the app
@@ -89,3 +95,38 @@ To fix any lint issues, use `npm run format` to automatically format all the cod
8995
- [Tailwind](https://tailwindcss.com): CSS framework for design and styling.
9096
- [ESLint](https://eslint.org): Statically analyze code to quickly find problems.
9197
- [Prettier](https://prettier.io): Opinionated code formatter.
98+
99+
## Contributing
100+
101+
Contributions are welcome and encouraged! If you'd like to contribute, send us a [pull request] and refer to our [code of conduct] and [contributing guide].
102+
103+
## Terms of Service
104+
105+
This sample uses Google Maps Platform services. Use of Google Maps Platform services through this sample is subject to the Google Maps Platform [Terms of Service].
106+
107+
This sample is not a Google Maps Platform Core Service. Therefore, the Google Maps Platform Terms of Service (e.g. Technical Support Services, Service Level Agreements, and Deprecation Policy) do not apply to the code in this sample.
108+
109+
## Support
110+
111+
This sample is offered via an open source [license]. It is not governed by the Google Maps Platform Support [Technical Support Services Guidelines], the [SLA], or the [Deprecation Policy]. However, any Google Maps Platform services used by the sample remain subject to the Google Maps Platform Terms of Service.
112+
113+
If you find a bug, or have a feature request, please [file an issue] on GitHub. If you would like to get answers to technical questions from other Google Maps Platform developers, ask through one of our [developer community channels]. If you'd like to contribute, please check the [contributing guide].
114+
115+
You can also discuss this sample on our [Discord server].
116+
117+
[Solar API]: https://developers.google.com/maps/documentation/solar
118+
[API key]: https://developers.google.com/maps/documentation/solar/get-api-key
119+
120+
[code of conduct]: ?tab=coc-ov-file#readme
121+
[contributing guide]: CONTRIBUTING
122+
[Deprecation Policy]: https://cloud.google.com/maps-platform/terms
123+
[developer community channels]: https://developers.google.com/maps/developer-community
124+
[Discord server]: https://discord.gg/hYsWbmk
125+
[file an issue]: https://github.com/googlemaps-samples/js-solar-potential/issues/new/choose
126+
[license]: LICENSE
127+
[pull request]: https://github.com/googlemaps-samples/js-solar-potential/compare
128+
[project]: https://developers.google.com/maps/documentation/solar/cloud-setup#enabling-apis
129+
[Sign up with Google Maps Platform]: https://console.cloud.google.com/google/maps-apis/start
130+
[SLA]: https://cloud.google.com/maps-platform/terms/sla
131+
[Technical Support Services Guidelines]: https://cloud.google.com/maps-platform/terms/tssg
132+
[Terms of Service]: https://cloud.google.com/maps-platform/terms

0 commit comments

Comments
 (0)