Code Monkey home page Code Monkey logo

leo-commerce's Introduction

Iniciar Projeto

1- npm init -y

2- npm install -D jest

3- npm install -D @babel/plugin-transform-modules-commonjs

4- incluir dentro do arquivo package.json

5- npm install -D husky

{
    "type": "module"
}

5- criar novo arquivo .babelrc e incluir dentro

{
    "env": {
        "test": {
            "plugins": ["@babel/plugin-transform-modules-commonjs"]
        }
    }
}

Code Style

Instalar extensões para VSCode:

  • ESlint
  • IntelliCode
  • EditorConfig for VS Code
  • Material Icon Theme
  • Prettier - Code Formatter
  • Rainbow Brackets

Acessar configurações do VSCode, acessar o arquivo settings.json e adicionar:

{
    "editor.formatOnSave": true,
    "editor.defaultFormatter": "esbenp.prettier-vscode",
    "prettier.tabWidth": 4,
    "[javascript]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    }
}

Criar um e-commerce para treinar POO (programação orientada a objetos)

  • Usuários
    • validador de senha
    • tem que ser maior 11 anos
  • Produtos
    • cupom
    • com desconto
  • Carrinho
    • frete grátis
    • Compras acima de R$200,00 frete grátis. Frete fixo de R$20,00
  • Cupom

O que aprendemos?

  • Criar uma classe com atributos e métodos
  • Criar uma data usando o new Date()
  • Criamos testes para validar nosso sistema

leo-commerce's People

Contributors

leoromanzoti avatar pedroimpulcetto avatar

Watchers

 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.