• Stars
    star
    282
  • Rank 146,549 (Top 3 %)
  • Language Vue
  • Created over 7 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Nuxt.js Universal App with SSR via Firebase Functions and Firebase Hosting

Nuxt.js Universal App with SSR via Firebase Functions and Firebase Hosting

Host a Nuxt Universal app or site by combining Nuxt.js with Firebase Cloud Functions and Hosting.

Live Preview


Pre-Setup: Before Installing Any Dependencies

  1. Obtain a Firebase Project ID to use for this project. See Overiew Here

  2. Inside this directory, locate the file .setup-firebaserc and replace the text your-project-id with your Firebase Project ID.


Setup

We will now get everything setup and deployed in 3 commands:

Note: All of these commands are ran from the root directory

  1. Install Dependencies in all necessary directories and creates .firebaserc from from .setup-firebaserc by using a postinstall hook
yarn
  1. Build The Project
yarn build
  1. Deploy To Firebase
yarn deploy

Your site should now be live!


Firebase Project Setup

  1. Create a Firebase Project using the Firebase Console.

  2. Obtain the Firebase Project ID

Features

  • Server-side rendering with Firebase Hosting combined with Firebase Functions
  • Firebase Hosting as our CDN for our publicPath (See nuxt.config.js)

Things to know...

  • You must have the Firebase CLI installed. If you don't have it install it with npm install -g firebase-tools and then configure it with firebase login.

  • If you have errors, make sure firebase-tools is up to date. I've experienced many problems that were resolved once I updated.

  • The root directory has a package.json file with several scripts that will be used to optimize and ease getting started and the workflow

  • ALL commands are ran from the root directory

More Repositories

1

vue2-editor

A text editor using Vue.js and Quill
JavaScript
2,455
star
2

nuxt-firebase-auth

This is an example of using Nuxt.js in SPA mode with Firebase Authentication
Vue
191
star
3

nuxt-ssr-firebase-auth.v2

JavaScript
131
star
4

nuxt-api-example

Nuxt.js API Example using Vuex and axios
Vue
121
star
5

nuxt-ssr-firebase-auth

Nuxt.js using SSR and Firebase with Authentication
JavaScript
72
star
6

nuxt2-ssr-firebase

Nuxt2 Universal App with SSR via Firebase Functions and Firebase Hosting
JavaScript
50
star
7

nuxt-markdown-example

An example of using markdown files for content with Nuxt.js / Vue.js
Vue
48
star
8

pocketvue

An Electron based app using Vue.js for Pocket
JavaScript
21
star
9

vue2editor-images

Example of using new image upload to server feature for Vue2Editor
JavaScript
19
star
10

nuxtify

Vue
17
star
11

nuxtcms

CSS
6
star
12

auth-module-firebase

JavaScript
5
star
13

nuxtfire

JavaScript
4
star
14

nuxtjs-firebase-functions

Vue
3
star
15

nuxt-netlify-fauna

JavaScript
3
star
16

nuxtcms-with-netlifycms

Vue
3
star
17

nuxtcms-demo

Vue
2
star
18

nuxt-admin-module

JavaScript
2
star
19

nuxtent-example

JavaScript
2
star
20

dkroyer

My Personal Site
Vue
2
star
21

nuxt-apollo-blog

Vue
2
star
22

nuxt-tailwind

JavaScript
2
star
23

nuxt3-app

Testing Nuxt 3 Beta
Vue
2
star
24

nuxty

Nuxt.js Template with Buefy (Bulma & Vue Library)
JavaScript
2
star
25

vuex-fireadmin

JavaScript
1
star
26

nuxtfire-starter

Vue
1
star
27

udacity-mars-project

JavaScript
1
star
28

nuxtfire-news

Vue
1
star
29

nuxt-starter

JavaScript
1
star
30

nuxt-boilerplate

JavaScript
1
star
31

codelouisville-week5demo

CSS
1
star
32

got2dance

Vue
1
star
33

nuxt-netlifycms-boilerplate

Vue
1
star
34

nuxt-book

JavaScript
1
star
35

nuxtlify

Vue
1
star
36

udacity-dino-project

JavaScript
1
star