Giter Site home page Giter Site logo

git-notes's Introduction

git-notes

Heroku

I wanted to build a Vue version of my egghead-notes app and this is the result.

Background:

I am using a custom WebSockets notes server, fire-notes.herokuapp.com, to handle reading & writing notes. The repo for that can be found here: fire-notes

Features:

  • using the latest version of Vue3
  • converted the project to use Vite - NextGen Frontend Tooling
  • refined UI elements
  • mobile friendly layout
  • an isolated store mutated only by actions
  • a simple eventBus which controls the flow of data thru the app
  • uses axios for all api calls
  • uses WebSockets to talk to a custom notes server, fire-notes
  • a simple html5 pushstate mechanism
  • saves last valid username to local storage
  • initializes app from URL if it matches #:username
  • otherwise it reloads last username from local storage
  • a simple navigator for visited usernames

Deployed:

This app is running on git-notes-eswat2.vercel.app

Running the app locally is as simple as executing the following:

yarn install
yarn build
yarn serve

git-notes's People

Contributors

eswat2 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

git-notes's Issues

add Vuex store

create a simple Vuex store to replace the embedded store

  1. store with simple mutations
  2. actions issue commits to mutate store
  3. remove event mechanism to push changes
  4. containers access data via the store
  5. leave event mechanism to invoke actions (phase 1)

Isolate actions to events only

Enhancement: isolate the actions to be purely event driven, i.e. all interactions should be thru the event bus

  • vue components
  • fire notes module

Question: does this solve anything?

Convert to an Immutable store??

Would an immutable store make this code cleaner or is that overkill for a small app like this?

Options:

  • vuex
  • vue-freezer

The primary goal is to isolate the store so that is is effectively immutable except via actions...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.