wearelucid / Nuxt Netlify Functions Example
Licence: mit
Nuxt.js example for running Netlify functions locally in a dev environment and as a generated static site deployed to Netlify
Stars: ✭ 59
Projects that are alternatives of or similar to Nuxt Netlify Functions Example
Bael Template
Brutalist Blog theme for Netlify CMS
Stars: ✭ 187 (+216.95%)
Mutual labels: netlify, nuxtjs
Nuxt Netlify
Dynamically generate `_headers` and `_redirects` files for Netlify in your Nuxt.js projects
Stars: ✭ 97 (+64.41%)
Mutual labels: netlify, nuxtjs
Nuxt Netlify Cms Starter Template
⚡ Build server-less, static websites with Vue.js and Netlify CMS.
Stars: ✭ 186 (+215.25%)
Mutual labels: netlify, nuxtjs
cvfy
CV generator built with Nuxt.js, TailwindCSS, deployed on Netlify.
Stars: ✭ 165 (+179.66%)
Mutual labels: netlify, nuxtjs
Todolist Frontend Vuejs
Front-end application for Todolist Web application built with Laravel and Vue.js
Stars: ✭ 120 (+103.39%)
Mutual labels: netlify, axios
diablo3-vue-platzi
👾 Diablo 3 Profile Finder - 👹. Using the Diablo III official APIs
Stars: ✭ 40 (-32.2%)
Mutual labels: axios, netlify
bluise
🍄 Bluise - A Nuxt.js & Netlify CMS boilerplate.
Stars: ✭ 132 (+123.73%)
Mutual labels: netlify, nuxtjs
webapp
Hospital management system web application repo
Stars: ✭ 41 (-30.51%)
Mutual labels: netlify, nuxtjs
vuetibook
Integrating Vue.js, Vuetify and Storybook
Stars: ✭ 16 (-72.88%)
Mutual labels: axios, netlify
Nuxt Ssr
✨vue+nuxt+sass+node+express+MongoDB 实现的SSR项目。
Stars: ✭ 323 (+447.46%)
Mutual labels: nuxtjs, axios
React Use Api
Async HTTP request data for axios. Designed for diverse UI states, SSR and data pre-caching.
Stars: ✭ 49 (-16.95%)
Mutual labels: axios
Frisbee
🐕 Modern fetch-based alternative to axios/superagent/request. Great for React Native.
Stars: ✭ 1,038 (+1659.32%)
Mutual labels: axios
Node React Ecommerce
Build ECommerce Website Like Amazon By React & Node & MongoDB
Stars: ✭ 1,080 (+1730.51%)
Mutual labels: axios
nuxt-netlify-functions-example
Nuxt.js example for running Netlify functions locally in a dev environment and as a generated static site deployed to Netlify.
Heavily inspired by the official guide and this example.
Demo
Live demo can be found here.
Testing functions locally
Thanks to the Netlify Dev command in the Netlify CLI (yarn global add netlify-cli
), you can test your functions locally with no build step involved!
After building the app and running netlify dev
or ntl dev
, you can test the functions locally by hitting the endpoint http://localhost:8888/.netlify/functions/
Build Setup
# Use Node version specified in nvmrc
$ nvm use
# Install dependencies
$ yarn
# Build Nuxt app
$ yarn build
# Serve Nuxt app and Netlify functions at localhost:8888
$ netlify dev
# Generate static project
$ yarn generate
Running Tests
Tests use the Netlify CLI to run the serverless functions locally. You'll probably be prompted to login with your Netlify account.
# Serve Nuxt app and Netlify functions at localhost:8888
$ netlify dev
# Run this command in another terminal
$ yarn test
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].