nuxt-express-firebase-template

The template for Nuxt.js x Express x Firebase

MIT License

Stars
18

Nuxt Express Firebase Template

This is the template to create web applications with

Directories

  • functions: For Firebase Cloud Functions
  • src: For Nuxt.js Project
  • public: For Firebase Hosting

How to use

First of all, you need to set your FIrebase project with Firebase CLI. After that, you have to install npm packages.

$ vue init taishikato/nuxt-express-firebase-template my-project
$ cd my-project
# install dependencies in src and functions with npm install Or yarn

Next, let's make your app work on your computer

$ cd src && yarn build
$ cd .. && mkdir public
$ cp -R functions/nuxt/dist/ public/
$ firebase serve --only hosting,functions

How to deploy

$ firebase deploy --only hosting,functions