Giter Site home page Giter Site logo

angularjs-redux-example's Introduction

ng-redux-example

An AngularJS 1.5 example usign redux.

Prerequisites

  • Node.js.
  • npm, installed with Node.js.
  • yarn a package manager for project dependencies.

Install dependencies

1) Check Node.js version.

node --version

The version should be at or above 6.9.1

If you don't have Node.js installed go to nodejs and install the appropiate version or use nvm (Recommended).

2) Check yarn version.

yarn --version

The version should be at or above 0.18.0

If you don't have yarn installed go to yarn and install the appropiate version.

3) Install the workspace dependencies.

# cd to your project folder
yarn

Workflow

Environment variables

Host configuration

  • NODE_ENV="development". Environment for server.

To change any of this variables:

export NODE_ENV="production"

Development workflow

Static server with live reload

# cd to your project folder
yarn start
# After this, a message indicate the url to run the application

This create a server using webpack-dev-server to serve the application in development environment.
The browser reloads the app when any file change.

Production workflow

# cd to your project folder
# Set environment variable for production
export NODE_ENV='production'

# Build
yarn run build

Put all in dist folder ready for production.

Install/Uninstall/Update dependencies

Follow this rules to update dependencies:

  • Install dependencies
# To install production dependencies
# cd to your project folder
yarn add angular --exact
# To install development dependencies
# cd to your project folder
yarn add eslint --exact --dev
  • Uninstall dependencies
# cd to your project folder
yarn remove angular
  • To Upgrade any dependencies follow Uninstall dependencies step and install again like Install dependencies.

Others scripts

To run eslint in console type:

# cd to your project folder
yarn run lint

Styling

CSS Framework niduscss-framework.

Naming conventions SuitCSS naming conventions.

angularjs-redux-example's People

Stargazers

Diego Alejandro Torres avatar

Watchers

James Cloos avatar Nicolas Mejia Correa 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.