Companion repository for the tutorial demostrating how to hide secret keys using netlify functions in a Frontend application
Netlify Functions are files used deploy server-side code as API endpoints without the need of backend.
To follow along with this tutorial, basic understanding of RESTful APIs and async/await
is required.
This branch is deploy via: https://testing--netlify-func-demo.netlify.app/.
The final demo app lives in the main
branch: https://netlify-func-demo.netlify.app/
- Clone the
testing
branch project repository
git clone https://github.com/frankiefab100/netlify-serverless-functions-demo.git
- Change to netlify-serverless-functions-demo directory
cd netlify-serverless-functions-demo
- Install dependencies
npm install
- Update
netlify.toml
file with the following commands:
[build]
command = "npm run build"
functions = "netlify/functions"
publish = "dist"
- Rename
.en.example
to.env
Replace your API key in the file
This project is protected under the MIT License.
Built with β€οΈ