The Stable marketing site is a static site built in GatsbyJS and deployed to Netlify.
Move into project root directory and run the below command to install all required dependencies:
yarn
yarn start
Open your browser and visit http://localhost:8000.
Some useful commands to work with the project.
-
yarn start
to start development server at http://localhost:8000 -
yarn clean
to wipe out the cache (.cache
folder) and public directories -
yarn build
for generating a production build -
yarn serve
to serve build files at http://localhost:9000
Creating a pull request to the master branch automatically deploys a preview build on Netlify that can be used for testing. Merging pull requests to the master branch builds a new production version of the site.
You can view builds on our Netlify account here: https://app.netlify.com/teams/stableinsurance/overview.
Additional documentation for Netlify's continues deployment configuarion can be found here: https://docs.netlify.com/configurebuilds/overview/
The site uses serverless functions called Netlify functions to make front end api calls to in house and 3rd party APIs. API keys are stored as environment variables within the Netlify dashboard. Netlify functions added to the /functions
folder in the project root directory are automatically integrated on deployment.
Documention for Netlify functions can be found here: https://docs.netlify.com/functions/overview/