Skip to content

Latest commit

 

History

History
55 lines (39 loc) · 1.62 KB

README.md

File metadata and controls

55 lines (39 loc) · 1.62 KB

groksrc search

groksrc search is a demo project that shows you how to set up nuxt.js on Firebase

Live Demo: https://search.groksrc.com or https://groksrc-nuxt-490a2.firebaseapp.com

Things to know

This nuxt.js issue was very helpful: nuxt/nuxt#1634

You might also like David East's video: https://www.youtube.com/watch?v=ZYUWsjUxxUQ

This project does not follow the video. Instead inspiration is taken from qm3ster in the comments on nuxt.js issue #1634.

Getting Started

Make sure you have the Firebase CLI installed. If you want to recreate this project from scratch you'll also need the Vue CLI tools.

Setup

# install external dependencies
$ npm install -g firebase-tools
$ npm install -g vue-cli # optional
$ git clone [email protected]:groksrc/groksrc-search.git

Install

# install project dependencies
$ yarn install # or npm install

# before you deploy you must init the project with your firebase project to create a .firebaserc
# NOTE: this command may overwrite firebase.json. Make sure that no important lines are lost
$ firebase init

Run

# serve with hot module reload at localhost:3000
$ yarn dev

# compile for Firebase
$ yarn package-functions

# serve via the firebase cli to test locally
$ firebase serve --only hosting,functions

Publish

# build for production and push live
$ yarn push

For detailed explanation on how things work, checkout my blog article about this project.