Giter Site home page Giter Site logo

willfeliz1 / desafio-gomarketplace Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 3.18 MB

Desafio 08 do bootcamp GoStack de colocar em pratica das aulas de React-Native

Starlark 1.25% Java 12.95% JavaScript 5.05% Objective-C 9.15% Ruby 11.24% TypeScript 60.37%

desafio-gomarketplace's Introduction

๐Ÿ“• About

The App can manipulate products in the cart adding/removing your quantity.

โšก Techs

  • React - JavaScript library for building user interfaces.
  • AsyncStorage - An asynchronous, unencrypted, persistent, key-value storage system for React Native.
  • ReactNavigation - Made up of some core utilities and those are then used by navigators.
  • Axios - Promise based HTTP client for the browser and node.js
  • Typescript - typed superset of JavaScript that compiles to plain JavaScript.
  • Styled-components - Visual primitives for the component age.
  • Yarn - package manager that doubles down as project manager.

๐Ÿ’ป Installation

Dependency

$ yarn

Server

$ yarn json-server server.json -p 3333

๐Ÿš€ Running goMarketPlace


$ yarn android or yarn ios
$ yarn start

run your AVD emulator

If you want to see the unit testing ๐Ÿ˜Š

$ yarn test

or

$ yarn test "pathfile/file.spec.tsx"

what it expects


src/__tests__/hooks/cart.spec.tsx
  Cart Context
    ๐Ÿ“Œ should be able to add products to the cart
    ๐Ÿ“Œ should be able to increment quantity 
    ๐Ÿ“Œ should be able to decrement quantity 
    ๐Ÿ“Œ should load products from AsyncStorage 
    ๐Ÿ“Œ should store products in AsyncStorage while adding, incrementing and decrementing 

src/__tests__/components/FloatingCart.tsx
  Dashboard
    ๐Ÿ“Œ should be able to calculate the cart total 
    ๐Ÿ“Œ should be able to show the total quantity of itens in the cart 
    ๐Ÿ“Œ should be able to navigate to the cart 

src/__tests__/pages/App.spec.tsx
  Dashboard
    ๐Ÿ“Œ should be able to list products
    ๐Ÿ“Œ should be able to add item to cart 

src/__tests__/pages/Cart.spec.tsx
  Dashboard
    ๐Ÿ“Œ should be able to list products on the cart 
    ๐Ÿ“Œ should be able to calculate the cart total 
    ๐Ÿ“Œ should be able to calculate the cart total 
    ๐Ÿ“Œ should be able to increment product quantity on the cart 
    ๐Ÿ“Œ should be able to decrement product quantity on the cart 


desafio-gomarketplace's People

Contributors

willfeliz1 avatar

Watchers

James Cloos avatar  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.