Giter Site home page Giter Site logo

egghead-mobx's Introduction

egghead-mobx

my attempt to convert the Github Note Taker app to use Mobx...

Dependency Status

NOTE: this code no longer uses firebase and re-base

I am now using json-server to handle reading & writing notes:

npm install -g json-server

npm run notes
npm start

You can view the content of db.json in order to see the changes you are making to notes.

BACKGROUND:

I took the Build Your First React.js App by Tyler McGinnis on egghead.io and decided to continue refining and refactoring the app that was created in that course. My initial thought was to convert it to Redux, but i found that a bit daunting since i was still trying to learn Redux. I found a reference to Mobx and after reading a little about it, i decided to try that approach first. This app is the result of that exploration.

Some of the features include:

  • refined UI elements
  • a store built on Mobx
  • uses axios for all api calls
  • a notes REST api built on top of json-server
  • a simple html5 pushstate mechanism
  • saves last valid username to local storage
  • initializes app from URL if it matches /profile/:username
  • otherwise it reloads last username from local storage
  • a simple navigator for visited usernames

DEPLOYMENT

I created another repo which contains the code required to deploy this app to heroku. You can find that here:

heroku-egghead-mobx

Some of it's features include:

  • simple embedded notes api built on mongoose
  • notes are persisted to mlab
  • code to enforce SSL, leveraging heroku's certs
  • code to support the Single Page App model

The deployed app can be found here: egghead-mobx

REFERENCE:

babel-node devServer.js
webpack-dev-server

json-server --watch db.json

egghead-mobx's People

Contributors

eswat2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

nalaswad

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.