Skip to content

luizclr/react-base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NodeJS Webpack Babel ESLint ReactJavaScript TypeScript Jest Testing-Library Styled Components Nginx Visual Studio Code Git

πŸ” React Base

example workflow Netlify Status

πŸ“– Tabe of contents

  1. πŸ’‘ Motivation
  2. πŸ“‹ Requirements
  3. πŸ› οΈ Installation and usage
  4. πŸ—‚οΈ Component Structure (general)
  5. πŸ§‘πŸ»β€πŸ’» Contributing

Motivation

Intro:

The main objective of this repository is to be used as a template-like to your react projects with many technologies already setted up from scratch.

Fork this repository and start working over it...

Technologies used:

Requirements

  • NodeJs
  • yarn
  • nvm

or

  • docker
  • docker-compose

Installation and usage

Create a copy .env file from .env.example and populate the variables.

cp .env.example .env

Using yarn

Using nvm? change local node version to project's node version on .nvmrc.

nvm install

Install dependencies:

yarn install

Run project on development mode:

yarn dev

Open new browser window on localhost:4000.

Run unit tests:

yarn test

Run linter:

yarn lint

Build for production:

yarn build

Start server with built code:

yarn start

Using Docker

create a docker network:

docker network create react-base

build image:

make build

Run project on development mode:

make up

Open new browser window on localhost:4000.

stop container:

make down

Run unit tests:

make test

Run linter:

make lint

Component Structure (general)

└─ component
    β”œβ”€ component.container.tsx
    β”œβ”€ component.schema.ts
    β”œβ”€ component.styles.tsx
    β”œβ”€ component.tsx
    └─ types.ts

Contributing

Follow the next steps to contribute

Branch names

Name your branch with a meaningful name that represents the changes you have done.

Examples:

chore/updating-changelog
fix/user-authentication
feat/add-card

Commit messages

Use the format {type}({scope}): {message}.

Eg: feat(login): added remember me.

See conventional commit guideline.