Coder Social home page Coder Social logo

react-shop / react-ecommerce Goto Github PK

View Code? Open in Web Editor NEW
187.0 187.0 52.0 141.32 MB

E-commerce monorepo application using NextJs, React, React-native, Design-System and Graphql with Typescript

License: MIT License

HTML 1.32% JavaScript 35.54% TypeScript 53.24% Starlark 0.47% Java 4.84% Ruby 0.50% Objective-C 3.76% MDX 0.33%
design-system ecommerce enzyme graphql hacktoberfest hooks jest lerna monorepo nestjs nextjs provider react react-native redux shop shopping-cart storybook tests typescript

react-ecommerce's People

Contributors

dependabot[bot] avatar lmeireles avatar mateusandrade avatar viniarruda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-ecommerce's Issues

[APP - Web] Set Redux Store as a package

Describe the Feature

Since we are planning to use a App and a Web Application, exporting our store as a package will let us gain more time using the same action used on both applications.

Possible Implementations

Store, Actions and Reducers as a package

[APP] App don't see the design-system

App don't see the design-system dependencies.

Branch: feat/app-design-system

  • Use wml

cd packages/app

wml add ../design-system ./node_modules/@react-shop/design-system and wml start

Screenshot:

Captura de Tela 2020-02-02 às 23 59 07

[APP] - Features

  • Create react native package
  • Test import design system package
  • Test import provider

Features

  • Att Api
  • Cart
  • Login
  • Recommended products
  • Register
  • Admin (Seller)
  • Profile (Buyer)
  • Contact Us
  • Message between Seller and Buyer
  • Ratings about the Seller
  • Dashboard for Sellers
  • Notifications
  • Favorites
  • WebSocket

[WEB] - Refactor Project

The idea is refactor the project and the api to include better solutions and create a open source project to help people create a complete and easy e-commerce.

The e-commerce project it will be changed to: (in construction)

  • Monorepo
  • Design System
  • Storybook
  • SDK
  • React with hooks
  • Redux Hooks
  • Redux-Saga
  • Reselect
  • Unit/Integration Tests

The Api will be changed to:

  • Elixir
  • Phoenix

Future Features

  • Home (List products)
  • Detail products
  • Recommended products
  • Cart
  • Checkout
  • Login / Register
  • Admin (Seller)
  • Profile (Buyer)
  • Contact Us
  • Message between Seller and Buyer
  • Ratings about the Seller
  • Dashboard for Sellers
  • Notifications
  • Favorites
  • Pwa
  • Firebase or storage
  • Socket.io
  • App
  • SSR

[APP] Create initial package structure

Context:

  • Create a initial structure React-native project using typescript template.

Notes:

The react-native need config metro to use other monorepo packages.

[Design-System] Features

This is a feature list for Design System

  • Theme
  • Buttons
    • Default Button
    • Secondary Button
    • Outlined Button
    • Circle Button
    • With Loading
    • With Icon
  • Header
    • Menu
    • Desktop
    • Mobile
  • Footer
    • Desktop
    • Mobile
  • Typographs
    • Title
    • Subtitle
    • Body
    • Text
    • Links
  • Form
    • Input Text
    • Input Upload
    • Select
    • Checkbox
    • Radio
    • Switch
  • Cards
  • Images
    • Gallery
    • Carrousel
  • Icons
  • Cart
  • Checkout
  • Wishlist
  • Messages (Popover)
  • Configure Jest/Enzyme
  • Add Addons to Storybook
    • Docs
    • Knobs
    • Accessibility
  • Verify add lib-esm in .gitignore

Theme

Link figma: https://www.figma.com/file/wm1eayZPzNKapBtg5oE6i3/UI-Challenge-10_12?node-id=0%3A149

Typograph

  • Font: Proxima Nova

Weight

  • thin: 100
  • semiBold: 600
  • regular: 400
  • bold: 700
  • black: 900

Texts

  • Title: 30px;
  • Subtitle: 24px;
  • Body1: 18px;
  • Body2: 16px;
  • Text: 14px;

Colors

  • Primary Light: #1BE0AB

  • Primary dark: #43FECB

  • Secondary: #743AF2

  • Error: #FF3773

  • Black: #1F1F24

  • Black Dark: #27272D

  • Black Normal: #34353D

  • Black Light: #484854

  • Gray: #737380

  • White: #FFFFFF

Spacing

Refactoring

Describe the Feature

Refatoring all the projects inside react-ecommerce

  • SSR (Next 13)
  • DS (Stitches)
  • Admin (Add categories, products, etc...)
  • Backend (nest + graphql)

Possible Implementations

Related Issues

How to fix errors?

When I launch
yarn start
then show errors:
`yarn run v1.22.4
$ lerna run start --parallel --scope '{web,@react-shop/design-system,@react-shop/sdk}'
lerna notice cli v3.19.0
lerna notice filter including "{web,@react-shop/design-system,@react-shop/sdk}"
lerna info filter [ '{web,@react-shop/design-system,@react-shop/sdk}' ]
lerna info Executing command in 3 packages: "yarn run start"
web: $ react-scripts start
@react-shop/design-system: $ tsc && tsc --build tsconfig.esm.json -w
@react-shop/sdk: $ tsc && tsc --build tsconfig.esm.json -w
web: Starting the development server...
web: events.js:292
web: throw er; // Unhandled 'error' event
web: ^
web: Error: ENOSPC: System limit for number of file watchers reached, watch '/home/lt/Apps/react-ecommerce-master/packages/web/public'
web: at FSWatcher. (internal/fs/watchers.js:169:26)
web: at Object.watch (fs.js:1388:34)
web: at createFsWatchInstance (/home/lt/Apps/react-ecommerce-master/node_modules/chokidar/lib/nodefs-handler.js:38:15)
web: at setFsWatchListener (/home/lt/Apps/react-ecommerce-master/node_modules/chokidar/lib/nodefs-handler.js:81:15)
web: at FSWatcher.NodeFsHandler._watchWithNodeFs (/home/lt/Apps/react-ecommerce-master/node_modules/chokidar/lib/nodefs-handler.js:233:14)
web: at FSWatcher.NodeFsHandler._handleDir (/home/lt/Apps/react-ecommerce-master/node_modules/chokidar/lib/nodefs-handler.js:429:19)
web: at FSWatcher. (/home/lt/Apps/react-ecommerce-master/node_modules/chokidar/lib/nodefs-handler.js:477:19)
web: at FSWatcher. (/home/lt/Apps/react-ecommerce-master/node_modules/chokidar/lib/nodefs-handler.js:482:16)
web: at FSReqCallback.oncomplete (fs.js:172:5)
web: Emitted 'error' event on FSWatcher instance at:
web: at FSWatcher._handleError (/home/lt/Apps/react-ecommerce-master/node_modules/chokidar/index.js:260:10)
web: at createFsWatchInstance (/home/lt/Apps/react-ecommerce-master/node_modules/chokidar/lib/nodefs-handler.js:40:5)
web: at setFsWatchListener (/home/lt/Apps/react-ecommerce-master/node_modules/chokidar/lib/nodefs-handler.js:81:15)
web: [... lines matching original stack trace ...]
web: at FSReqCallback.oncomplete (fs.js:172:5) {
web: errno: -28,
web: syscall: 'watch',
web: code: 'ENOSPC',
web: path: '/home/lt/Apps/react-ecommerce-master/packages/web/public',
web: filename: '/home/lt/Apps/react-ecommerce-master/packages/web/public'
web: }
web: error Command failed with exit code 1.
web: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
lerna ERR! yarn run start exited 1 in 'web'
lerna ERR! yarn run start stdout:
$ react-scripts start
Starting the development server...

info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

lerna ERR! yarn run start stderr:
events.js:292
throw er; // Unhandled 'error' event
^

Error: ENOSPC: System limit for number of file watchers reached, watch '/home/lt/Apps/react-ecommerce-master/packages/web/public'
at FSWatcher. (internal/fs/watchers.js:169:26)
at Object.watch (fs.js:1388:34)
at createFsWatchInstance (/home/lt/Apps/react-ecommerce-master/node_modules/chokidar/lib/nodefs-handler.js:38:15)
at setFsWatchListener (/home/lt/Apps/react-ecommerce-master/node_modules/chokidar/lib/nodefs-handler.js:81:15)
at FSWatcher.NodeFsHandler._watchWithNodeFs (/home/lt/Apps/react-ecommerce-master/node_modules/chokidar/lib/nodefs-handler.js:233:14)
at FSWatcher.NodeFsHandler._handleDir (/home/lt/Apps/react-ecommerce-master/node_modules/chokidar/lib/nodefs-handler.js:429:19)
at FSWatcher. (/home/lt/Apps/react-ecommerce-master/node_modules/chokidar/lib/nodefs-handler.js:477:19)
at FSWatcher. (/home/lt/Apps/react-ecommerce-master/node_modules/chokidar/lib/nodefs-handler.js:482:16)
at FSReqCallback.oncomplete (fs.js:172:5)
Emitted 'error' event on FSWatcher instance at:
at FSWatcher._handleError (/home/lt/Apps/react-ecommerce-master/node_modules/chokidar/index.js:260:10)
at createFsWatchInstance (/home/lt/Apps/react-ecommerce-master/node_modules/chokidar/lib/nodefs-handler.js:40:5)
at setFsWatchListener (/home/lt/Apps/react-ecommerce-master/node_modules/chokidar/lib/nodefs-handler.js:81:15)
[... lines matching original stack trace ...]
at FSReqCallback.oncomplete (fs.js:172:5) {
errno: -28,
syscall: 'watch',
code: 'ENOSPC',
path: '/home/lt/Apps/react-ecommerce-master/packages/web/public',
filename: '/home/lt/Apps/react-ecommerce-master/packages/web/public'
}
error Command failed with exit code 1.

lerna ERR! yarn run start exited 1 in 'web'
lerna WARN complete Waiting for 2 child processes to exit. CTRL-C to exit immediately.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
`

How to fix it? And how to launch app on android and ios? there is no description In README about it.

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.