Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/daraperini/learning-react-contextapi

This React project is an e-commerce created using Context API
https://github.com/daraperini/learning-react-contextapi

javascript react react-context

Last synced: 14 days ago
JSON representation

This React project is an e-commerce created using Context API

Awesome Lists containing this project

README

        

# E-commerce with ContextAPI

This project was developed during Alura's class *React: global states manegement with ContextAPI*. I developed a simple e-commerce using React focusing on the usage of React Context. I learned how to create and manege globas states through ContextAPI and reinforced other concepts such as Single Responsibility Principle and other good practices in Front-end development. I also developed custom hooks and used Contexts to alter other Contexts.

## Used tools:

* React (ContextAPI)
* JavaScript

*(Alura is a Brazilian technology school and for acessibility reasons this code is in Portuguese)*

## Initializing the project on your computer

- Clone the repository using the command line:
- git clone *link of the repository*
- cd *file of the repository*

- Go to the projects main file:
- cd *name of the file*

- Run the code:
- npm install (to install all project's dependencies)
- npm start (to open the project on your browser)

* In case the project does not opend automatically type http://localhost:3000 on your browser

#

# E-commerce com ContextAPI

Nesse projeto desenvolvido a partir do curso *React: gerenciamento de estados globais com ContextAPI*, da Alura, desenvolvi um e-commerce simples utilizando o React, com foco na utilização de React Context. Nele aprendi a criar e gerenciar estados globais através do ContextAPI, além de reforçar conceitos como Single Responsibility Principle e outras boas práticas da programação Front-end. Também desenvolvi hooks costumizados e utilizei Contexts para alterar outros Contexts.

## Ferramentas utilizadas:

* React (ContextAPI)
* JavaScript

## Iniciando o projeto na sua máquina

- Clone o repositório através do terminal:
- git clone *link do repositório*
- cd *pasta do repositório*

- Rode o código na sua máquina:
- npm install (para instalar as dependências do projeto)
- npm start (para abrir o projeto no seu navegador)

* Caso o projeto não abra automaticamente, digite http://localhost:3000 no seu navegador