Skip to content

Latest commit

 

History

History
executable file
·
79 lines (58 loc) · 2.03 KB

README.md

File metadata and controls

executable file
·
79 lines (58 loc) · 2.03 KB

Brian - Frontend

Your personal assistant now has an interface xD

Requirements

  • Node 10+
  • NPM 6+

Tech stack (In development)

  • React v16.8
  • Semantic UI
  • Docz
  • Jest
  • ESLint
  • Prettier

Naming conventions

Regular component 

src/components/atoms/title <- Folder name
├── Title.js    <- Component file
├── Title.mdx   <- Docz file
├── __tests__   <- Tests folder
│   ├── Title.test.js   <- Tests file
│   └── __snapshots__
│       └── Title.test.js.snap
└── index.js   <- Reflection export folder

Composed name component 
src/components/atoms/my-awesome-component <- Folder name
├── MyAwesomeComponent.js    <- Component file
├── MyAwesomeComponent.mdx   <- Docz file
├── __tests__   <- Tests folder
│   ├── MyAwesomeComponent.test.js   <- Tests file
│   └── __snapshots__
│       └── MyAwesomeComponent.test.js.snap
└── index.js   <- Reflection export folder

Running locally

$ git clone [email protected]:clucasalcantara/brian-frontend.git
$ yarn
$ yarn start

| yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

Available Scripts

yarn test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

yarn docz:dev

Launches the docz server in the interactive watch mode.

yarn docz:build

Build the docz static output.

yarn build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.