A simple website to post, update, delete blog posts without user authentication.
See the hosted project here.
*It's bug-free now! (As of July 1st, 2020)**
Created with Vue / Vuex and bootstrapped with vue create
.
Developed with JavaScript.
Styled with Vuetify.
Code style enforced with ESLint and Prettier.
Deployed through firebase and data managed with Firestore.
Write
a new blog post, and post itDelete
an existent blog postClick
on a blog post to see detailsSee
the entire list of the blog post by latest datesEdit
a blog post
- Deleting collection inside the cloud database using,
auto-generated id
to manage data in a clean manner instead of tracking blog posts with counter variables - Using Firestore transaction methods for actions which include multiple operations such as editing a post (read + write)
- Managing the entire data in-store vs Firestore => I ended up storing the entire data inside the cloud database, so reactivity was not fully taken advantage which is one of the core features of Vue
- Using Vue router for the first time was a good intro in understanding how single-page applications work
- Running the application on development and hosted environment can have different behaviors, so tests are needed to ensure good performance
- Good refresher on
async/await
by handling database operations
- Fixing glitches and bug after deploy (all the events registered in the client are triggered, causing maximum call stack size to exceed the limit)
- For the
editing
feature, I need to consider cases where users decidednot
to save the edits made. - Update data rendered in the client without reloading the page for better user experience.
- Use
git clone
to clone this repository. Alternatively, download the source code. - Make sure you're in the root folder by executing
cd my-blogger/
. - Make sure required dependencies have been installed using
yarn install
.
yarn serve
to compile and hot-reload for developmentyarn build
to compile and minify for productionyarn lint
to run eslint and fix files on the project