This demo also has the following 3rd party libraries examples:
- FullCalendar (https://fullcalendar.io/), for daily, weekly and monthly calendar display
- Leaflet (https://leafletjs.com/), for map display
- Fabric (https://fabricjs.com/), for drawing on Canvas HTML element in SVG vector format
NOTE: The use of a 3rd party library does NOT constitute the use of an API when implementing a capstone MVP.
Run npm run install
to install necessary package
Create/update the .env file at the root level with the following key/values, update as needed:
PIZZA_PLACE_API_URL=https://spa-example-api.onrender.com
API_URL=https://spa-example-api.onrender.com
MONGODB=
[^---This MONGODB value above should be changed to be your own mongodb cluster connection string! See the curriculum for more on that!---^]
OPEN_WEATHER_MAP_API_KEY=
[^--- You get this from Open Weather Map (https://openweathermap.org/api)]
NPS_API_KEY=
[^--- You get this from National Park Service (https://www.nps.gov/subjects/developer/get-started.htm)]
You must start both the SPA and Server using the npm run serve
and npm run app:watch
commands in separate terminals.
In the terminal use npm run
serve
: Start the frontend SPA with hot reload
app:watch
: Start the backend API with hot reload
parcel-build
: Package SPA for production deployment
SPA URL: https://spa-example.onrender.com
API URL: https://spa-example-api.onrender.com
Run: docker-compose up -d
Run: docker-compose stop