Skip to content

Latest commit

 

History

History
142 lines (102 loc) · 2.61 KB

README.md

File metadata and controls

142 lines (102 loc) · 2.61 KB

FireBlog ✌👍😁🎈

Description

Based on Vue 2

Basic blog for write your posts:

  • blog allows you to work with blogs (create, read, update, delete - CRUD)
  • work with profile: create account, update accounts data, login, logout (use firebase email auth)
  • use tiptap 2x as text editor
  • layouts use only CSS grid, without CUI frameworks, without CSS flexbox

Project setup

$ yarn install
$ npm i
$ npm i --legacy-peer-deps

Compiles and hot-reloads for development

$ npm run serve
$ yarn serve

Compiles and minifies for production

$ npm run build
$ yarn build

Lints and fixes files

$ npm run lint
$ yarn lint

Deploy you project to Firebase

$ npm run deploy
$ yarn deploy

Customize configuration

See Configuration Reference.

Initial Firebase

https://firebase.google.com/docs/hosting/quickstart#initialize

# npm i -g firebase-tools
or
# curl -sL https://firebase.tools | bash
$ npm init
$ npm install --save firebase
$ yarn add firebase
$ firebase login

https://console.firebase.google.com/project/fire-blog-vue-js/hosting/sites click button "Get started"

$ firebase init hosting

"Don't set up a default project"

  • ? Are you ready to proceed? Yes

  • ? What do you want to use as your public directory? dist

  • ? Configure as a single-page app (rewrite all urls to /index.html)? Yes

  • ? Set up automatic builds and deploys with GitHub? No

  • ? Wrote dist/index.html? Yes

$ firebase emulators:start
$ firebase deploy --only hosting
$ firebase deploy --only hosting:fire-blog-vue-js --project fire-blog-vue-js

if you have deploy troubles

$ firebase logout
$ firebase login

https://firebase.google.com/docs/web/modular-upgrade https://firebase.google.com/docs/web/modular-upgrade#update_imports_to_v9_compat

Local project firebase config

VUE_APP_ADMIN_UIDS=["uid1", "uid2", "ect..."]

VUE_APP_API_KEY=
VUE_APP_AUTH_DOMAIN=
VUE_APP_PROJECT_ID=
VUE_APP_STORAGE_BUCKET=
VUE_APP_MESSAGING_SENDER_ID=
VUE_APP_APP_ID=

Fill it from your Firebase project settings and save to .env.local

VUE_APP_ADMIN_UIDS - array of uids blog admins

Project Console: https://console.firebase.google.com/project/fire-blog-vue-js/overview

Demo:

Material Design Icons

https://materialdesignicons.com/

Yarn interactive update deps:

$ yarn upgrade-interactive --latest

Clean cache

$ yarn cache clean