Update README.md
rodzic
5dd191d950
commit
67d1acf77b
|
@ -92,21 +92,21 @@ Download this code directly or use [git](git-scm.org) (through CLI or a client)
|
||||||
|
|
||||||
**The gist;** Add a Google Maps API Key and database connection information to the code.
|
**The gist;** Add a Google Maps API Key and database connection information to the code.
|
||||||
|
|
||||||
1. Once you've obtained a Google Maps API Key place add it to the code [here](src/client/src/components/MapContainer.js#245).
|
1. Once you've obtained a Google Maps API Key place add it to the code [here](src/client/src/components/MapContainer.js#L248).
|
||||||
|
|
||||||
```js
|
```js
|
||||||
export default GoogleApiWrapper({
|
export default GoogleApiWrapper({
|
||||||
apiKey: ("reallllllylongkeyhere")
|
apiKey: ("ENTER_GOOGLE_API_KEY")
|
||||||
})(MapContainer)
|
})(MapContainer)
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Update the MariaDB connection configuration here.
|
2. Update the MariaDB connection configuration [here](src/db.js#L4).
|
||||||
|
|
||||||
```js
|
```js
|
||||||
const pool = mariadb.createPool({
|
const pool = mariadb.createPool({
|
||||||
host: 'localhost',
|
host: 'localhost',
|
||||||
user:'root',
|
user:'ENTER_USERNAME_HERE',
|
||||||
password: 'sosafemuchsecure',
|
password: 'ENTER_PASSWORD_HERE',
|
||||||
database: 'Places',
|
database: 'Places',
|
||||||
multipleStatements: true,
|
multipleStatements: true,
|
||||||
connectionLimit: 5
|
connectionLimit: 5
|
||||||
|
@ -143,7 +143,7 @@ Navigate to the [src directory](https://github.com/mariadb-corporation/Developer
|
||||||
|
|
||||||
Once you've pulled down the code and have verified that all of the required Node packages are installed you're ready to run the application! It's as easy as 1,2,3.
|
Once you've pulled down the code and have verified that all of the required Node packages are installed you're ready to run the application! It's as easy as 1,2,3.
|
||||||
|
|
||||||
1. Using a command line interface (CLI) navigate to where to the `src` directory of Places.
|
1. Using a command line interface (CLI) navigate to where to the [src directory](https://github.com/mariadb-corporation/Developer-Examples/blob/master/Places/src/) of Places.
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<img src="media/cli_root.png" />
|
<img src="media/cli_root.png" />
|
||||||
|
|
Ładowanie…
Reference in New Issue