shopnote
is a JAMstack application helps in creating notes with shopping items. This application is built to showcase the JAMstack concept using Fauna
, Netlify Serverless Functions
and GatsbyJS
. This is a sample application and should be used only for the learning purpose.
This project uses Fauna
as the data store. Plesae make sure to create an account with Fauna. Clone this project and follw these steps.
- Create a database in Fauna called,
shopnotes
. - Upload the shopnotes.gql file to the database created.
- Create the server secret key.
- Clone the project.
- Chage directory to the project locally(cd shopnote).
- Install
netlify-cli
globally,
npm install -g netlify-cli
- Install dependencies,
yarn install
- Create a file called
.env
at the root of the project and copy-paste the Fauna Server key as,
FAUNA_SERVER_SECRET=YOUR_SECRET_KEY
- Run the commands
netlify login
netlify dev
You should have the application launched @ http://localhost:8888
How to create a client-serverless Jamstack app using Netlify, Gatsby and Fauna