Jolt
Jolt is a framework for testing and deploying JAMstack apps with serverless functions.
Getting Started
-
Install Jolt
npm i -g jolt-framework
-
Create an app
npx create-react-app jolt-first-project cd jolt-first-project
paste the isnto the contents of
src/App.js
function App() { return ( <script> fetch(".functions/helloWorld").then(res => console.log(res)) </script> ); } export default App;
-
Create a functions folder
mkdir functions
-
Jolt init
jolt init
-
Add helloWorld function
jolt mklam