https://github.com/bondrogeen/nuxt_content_blog_firebase
Demo blog template on nuxt content, firebase and vuetify
https://github.com/bondrogeen/nuxt_content_blog_firebase
authentication blog content firebise nuxt storage vue vuetify
Last synced: about 2 months ago
JSON representation
Demo blog template on nuxt content, firebase and vuetify
- Host: GitHub
- URL: https://github.com/bondrogeen/nuxt_content_blog_firebase
- Owner: bondrogeen
- License: mit
- Created: 2021-04-04T17:57:18.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-04T18:22:57.000Z (about 5 years ago)
- Last Synced: 2025-06-17T04:36:42.045Z (about 1 year ago)
- Topics: authentication, blog, content, firebise, nuxt, storage, vue, vuetify
- Language: Vue
- Homepage: https://nuxt-content-blog-firebase.web.app/
- Size: 1.14 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nuxt_content_blog_firebase
Blog template on nuxt content, firebase and vuetify
[Demo](https://nuxt-content-blog-firebase.web.app/)
`npm run dev`
`npm run build`
`npm run static`
edit the [.env](https://github.com/bondrogeen/nuxt_content_blog_firebase/blob/main/.env) file firebase setting
Rules firebase Realtime Database
```json
{
"rules": {
"users": {
".read": "root.child('users/'+ auth.uid +'/admin').val() === true",
"$uid": {
".read": "auth != null && auth.uid == $uid",
"create": {
".validate": true,
".write": "$uid === auth.uid"
},
"email": {
".validate": true,
".write": "$uid === auth.uid"
},
"uid": {
".validate": true,
".write": "$uid === auth.uid"
},
"name": {
".validate": true,
".write": "$uid === auth.uid"
},
"surname": {
".write": "$uid === auth.uid"
},
"avatar": {
".write": "$uid === auth.uid"
},
"lastLogin": {
".write": "$uid === auth.uid"
},
"admin": {
".write": "root.child('users/'+ auth.uid +'/admin').val() === true"
},
"verified": {
".write": "root.child('users/'+ auth.uid +'/admin').val() === true"
}
}
},
"ratings": {
".read": true,
"$title": {
".read": true,
"$uid": {
".read": true,
".write": "$uid === auth.uid"
}
}
},
"comments": {
".read": true,
".write": "root.child('users/'+ auth.uid +'/admin').val() === true",
".indexOn": "title",
"$items": {
".read": true,
"name": { ".write": "auth != null && !data.exists()" },
"title": { ".write": "auth != null && !data.exists()" },
"comment": { ".write": "auth != null && !data.exists()" },
"timestamp": { ".write": "auth != null && !data.exists()" },
"avatar": { ".write": "auth != null && !data.exists()" },
"uid": { ".write": "auth != null && !data.exists()" },
"reply": { ".write": "auth != null && !data.exists()" },
"verified": {
".write": "root.child('users/'+ auth.uid +'/admin').val() === true || root.child('users/'+ auth.uid +'/verified').val() === true"
}
}
}
}
}
```
#### 0.0.1
* (bondrogeen) initial release
## License
The MIT License (MIT)
Copyright (c) 2017 bondrogeen
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.