GithubHelp home page GithubHelp logo

vanilla_redux's Introduction

vanilla_redux

A vanilla ES6 application that uses redux for state management Was required to do some investigation work into using redux with ES6 javascript. This project was created for proof of concept and to allow experimenting and templating

Getting Started

  1. clone the repository git clone https://github.com/tomdoyleiom/vanilla_redux.git vanilla_redux
  2. cd vanilla_redux && code . will open the project in vscode
  3. from the console (ctr + ') run npm install which will install the required packages
  4. once the packages have installed run npm run dev from the console which will:
    • build the application (in the future this will include sass and minification, but for now just adds bundle.js to build)
    • it will serve the build directory (so that it can be tested, default url: http://localhost:5000)
    • it will serve the json rest api for making fetch requests (default url: http://localhost:3000)
      • you can also access the json api via http://my-json-server.typicode.com/tomdoyleiom/vanilla_redux
      • to host your own db.json at my-json-server, fork the repository and update the db.json file.
      • it will be available at http://my-json-server.typicode.com/<username>/<repo>

Available scripts

a number of npm scripts have been provided to make it easier to work with this application.

npm run test

tests the application using jes. will output the result of testing to the console

npm run test:watch

same as the above test script, but adds the --watchAll flag so that jest listens for file changes and runs when there are changes

npm run build

builds the application using webpack

npm run build:watch

same as the above build script, but adds the --watch flag so that webpack listens for file changes and runs where there are changes

npm run api

hosts the db.json file as a rest API running locally. can be used to test data calls.

npm run e2e

Opens the Cypress test runner for running E2E tests. For more information, visit https://docs.cypress.io

vanilla_redux's People

Contributors

tomdoyleiom avatar mv-method4 avatar

Watchers

 avatar

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.