- This project is developed using Node v14.19.2
- Run the CF template using your own AWS account and get
IdentityPoolId
andregion
from stack output - Keys mentioned above will be added to
.env
file, which is required to get the project running
VITE_AWS_COGNITO_IDENTITY_POOL_ID=<VITE_AWS_COGNITO_IDENTITY_POOL_ID>
VITE_AWS_REGION=<VITE_AWS_REGION>
VITE_AWS_COGNITO_IDENTITY_POOL_ID_ASIA=<VITE_AWS_COGNITO_IDENTITY_POOL_ID_ASIA>
VITE_AWS_REGION_ASIA=<VITE_AWS_REGION_ASIA>
VITE_AWS_CF_TEMPLATE=<VITE_AWS_CF_TEMPLATE>
VITE_APPLE_APP_STORE_LINK=<VITE_APPLE_APP_STORE_LINK>
VITE_GOOGLE_PLAY_STORE_LINK=<VITE_GOOGLE_PLAY_STORE_LINK>
git clone https://github.com/aws-geospatial/amazon-location-features-demo-web.git
cd amazon-location-features-demo-web/
yarn install
yarn vite
Installs all the dependencies.
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
Builds the app for development to the build
folder locally and starts the local server.
Env keys required in cypress.env.json
file, see cypress.env.json.example
for reference. This is only needed to run the e2e tests locally.
WEB_DOMAIN=<WEB_DOMAIN>
WEB_DOMAIN_USERNAME=<WEB_DOMAIN_USERNAME>
WEB_DOMAIN_PASSWORD=<WEB_DOMAIN_PASSWORD>
IDENTITY_POOL_ID=<IDENTITY_POOL_ID>
USER_DOMAIN=<USER_DOMAIN>
USER_POOL_CLIENT_ID=<USER_POOL_CLIENT_ID>
USER_POOL_ID=<USER_POOL_ID>
WEB_SOCKET_URL=<WEB_SOCKET_URL>
COGNITO_EMAIL=<COGNITO_EMAIL>
COGNITO_PASSWORD=<COGNITO_PASSWORD>
If you are configuring Github actions fo the e2e tests, make sure to add these keys to the secrets section of the repo with a CYPRESS_
prefix.
Runs Cypress tests to completion. By default, cypress run
will run all tests headlessly. https://docs.cypress.io/guides/guides/command-line#cypress-run
Runs Cypress tests to completion in a browser which can be specified in the options
. https://docs.cypress.io/guides/guides/command-line#cypress-open
Runs Security tests insuring policies match the expected values.
Run all the test cases for all the components within the repo.
Run all the test cases for all the components within the repo and provides a coverage report.
Maps (Name - Style)
- location.aws.com.demo.maps.Esri.DarkGrayCanvas - VectorEsriDarkGrayCanvas
- location.aws.com.demo.maps.Esri.Imagery - RasterEsriImagery
- location.aws.com.demo.maps.Esri.Light - VectorEsriTopographic
- location.aws.com.demo.maps.Esri.LightGrayCanvas - VectorEsriLightGrayCanvas
- location.aws.com.demo.maps.Esri.Navigation - VectorEsriNavigation
- location.aws.com.demo.maps.Esri.Streets - VectorEsriStreets
- location.aws.com.demo.maps.HERE.Explore - VectorHereExplore
- location.aws.com.demo.maps.HERE.Contrast - VectorHereContrast
- location.aws.com.demo.maps.HERE.ExploreTruck - VectorHereExploreTruck
- location.aws.com.demo.maps.HERE.Hybrid - HybridHereExploreSatellite
- location.aws.com.demo.maps.HERE.Imagery - RasterHereExploreSatellite
Place indexes (Name)
- location.aws.com.demo.places.Esri.PlaceIndex
- location.aws.com.demo.places.HERE.PlaceIndex
Route calculators (Name)
- location.aws.com.demo.routes.Esri.RouteCalculator
- location.aws.com.demo.routes.HERE.RouteCalculator
Geofence collections (Name)
- location.aws.com.demo.geofences.GeofenceCollection
Trackers (Name)
- location.aws.com.demo.trackers.Tracker
- This project is licensed under the MIT-0 License. See LICENSE.