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
- clone the repository
git clone https://github.com/tomdoyleiom/vanilla_redux.git vanilla_redux
cd vanilla_redux && code .
will open the project in vscode- from the console (ctr + ') run
npm install
which will install the required packages - 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>
- you can also access the json api via
a number of npm scripts have been provided to make it easier to work with this application.
tests the application using jes. will output the result of testing to the console
same as the above test script, but adds the --watchAll flag so that jest listens for file changes and runs when there are changes
builds the application using webpack
same as the above build script, but adds the --watch flag so that webpack listens for file changes and runs where there are changes
hosts the db.json
file as a rest API running locally.
can be used to test data calls.
Opens the Cypress test runner for running E2E tests. For more information, visit https://docs.cypress.io