Skip to content
/ ts-react Public template

React 16.8+ (hooks) & Typescript 3.72+

Notifications You must be signed in to change notification settings

W3stside/ts-react

Repository files navigation

React 16.8+ (hooks) & Typescript 3.72+ Web App

This app will allow to:

  • Do stuff

Running locally

# Install dependencies
yarn install

# Start dev server in http://localhost:8080
yarn start

Open http://localhost:8080 in any browser.

Mock mode (default)

The app will run by default in mock mode, that means that all service implementations will be replaced by a mocked one with some fake data. This is useful for development, however it's also useful to run it with the actual implementation:

# Disable mock mode
MOCK=false yarn start

Alternatively, if you want to modify always this behaviour, add the env var into a local .env file (i.e. use .env.example as an example of the content).

Build app

yarn build

The static files will be generated in ./dist dir.

Run tests

yarn test

Automatically fixing code

Manually, by running:

yarn lint:fix

If you use Visual Studio Code, it's recommended to install Prettier - Code formatter and add the following to your settings.json

"eslint.autoFixOnSave":  true,
"eslint.validate":  [
  "javascript",
  "javascriptreact",
  {"language":  "typescript",  "autoFix":  true  },
  {"language":  "typescriptreact",  "autoFix":  true  }
]

About

React 16.8+ (hooks) & Typescript 3.72+

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published