GithubHelp home page GithubHelp logo

vira-i18n-react's Introduction

React | Typescript | Jest - application boilerplate

It's a template for React application with Typescript, Jest library and other stuff that can be helpful for You - feel free to use it!

  1. Instalation steps
  2. Available scripts
  3. Technology stack
  4. Useful information
  1. Clone this repository to destination folder.

git clone https://github.com/username/project-name.git

  1. Install dependencies.

npm install

  1. Run local environment.

npm start

npm start - run development server with hot reload mode,

npm build - build distributon package,

npm run lint - run lints,

npm run lint:code - run lint for typescript / javascript files,

npm run lint:style - run lint for style files,

npm test - run tests,

npm run test:watch - run tests with watch mode,

npm run test:coverage - run tests and generate coverage report.

I focused on separate logic from presentation layer of component, so components are created according to this scheme:

  • index.tsx - main file with component declaration. You can put here a React Hooks features (eg.: useState, useEffects etc.), prepare component props, do some base logic etc. This file should return component view layer with component props set.
  • Component.tsx - file with view layer of component.
  • Component.scss - file with component style declaration.
  • handlers.ts - file where You can place useful function for component.

Before You commit or push something on repository, Husky will run code lints and tests. The configuration files are in the main project folder.

I will add redux & context API soon.

vira-i18n-react's People

Watchers

James Cloos avatar Víctor Gómez 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.