Skip to content

ematipico/typescript-sample

Repository files navigation

TypeScript sample

This a sample repository on how to use TypeScript with Redux, React and Webpack.

The application simulates a listing of products divided by categories and after that it allows you to show every detail of the product. It's possible to sign in to have access to the personal page using a login.

... personal cart coming soon ...

Libraries used

In order to create this project, I used some libraries that I usually use to startup a project like this:

  • redux as state management library
  • redux-saga to handle asynchronous operations when an action is dispatched
  • awesome-typescript-loader to transpile TypeScript code
  • ava for the test suite
  • postcss for using CSS4 features (as you can see there is not SASS or LESS)
  • webpack (obviously) to bundle the code
  • tslint for coding style and rules

How to

To kick off the project and see it with HMR (Hot Module Reloading)

npm start

To run the test suite

npm test

To create a production ready bundle

npm run dist

About

This is a sample on how to use Typescript with Redux, React and Webpack

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published