davidroyer/nuxt-ssr-firebase
소개
Nuxt.js Universal App with SSR via Firebase Functions and Firebase Hosting
웹 및 앱 개발What you can do
- Server-side rendering with Firebase Hosting combined with Firebase Functions
- Firebase Hosting as our CDN for our publicPath (See nuxt.config.js)
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- -1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalNuxt.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.
Pre-Setup: Before Installing Any Dependencies
Obtain a Firebase Project ID to use for this project. See Overiew Here
Inside this directory, locate the file
.setup-firebasercand replace the textyour-project-idwith 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
- Install Dependencies in all necessary directories and creates
.firebasercfrom from.setup-firebasercby using apostinstall hook
yarn
- Build The Project
yarn build
- Deploy To Firebase
yarn deploy
Your site should now be live!
Firebase Project Setup
Create a Firebase Project using the Firebase Console.
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-toolsand then configure it withfirebase login.If you have errors, make sure
firebase-toolsis 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
관련 프로젝트 살펴보기
불러오는 중…