Git Product home page Git Product logo

hampaioclient's Introduction

SETTING UP WEB(REACT)

1. Setup the project on local machine:

  git clone https://github.com/ArastoSahbaei/transbit-web.git
  cd <folder>
  npm install
  npm start

2. Create a .env file in the root of the project with the following variables:

  REACT_APP_ENVIROMENT = DEVELOPMENT

SETTING UP SERVER(NODE.TS EXPRESS MONGOOSE)

1. Setup the project on local machine:

  git clone https://github.com/ArastoSahbaei/BITup-server
  cd <folder>
  npm install
  npm start

2. Create a .env file in the root of the project with the following variables:

    ENVIROMENT = DEVELOPMENT
    TOKEN_SECRET = <string>
    BCRYPT_SALT_ROUNDS = <number>
    EMAIL_PW = <string>
    DEV_DATABASE_URL = <string> EXAMPLE: mongodb://localhost:27017/bitup
    DEV_BTCPAY_TOKEN = <string>
    DEV_BINANCE_TOKEN = <string>
    DEV_BINANCE_SECRET = <string>
    DEV_WEB_URL = <string> EXAMPLE: http://localhost:3000

3. Insomnia Import the file found in /insomnia/* into Insomnia. This should provide you with all API-calls.

SETTING UP MOBILE(REACT NATIVE)

hampaioclient's People

Contributors

arastosahbaei avatar

Watchers

 avatar  avatar

hampaioclient's Issues

Application crash when cache is saved in browser of deleted user

If a user has been deleted from the system but the client still has the cache of that user remembered the application will crash upon visit.

The stack trace of the bug:
parseJWT
C:/PROJECTS/hampaio/client/src/routes/Routes.tsx:55
52 | id: JWT.id,
53 | authenticated: true,
54 | username: response.data.username,

55 | shoppingCart: response.data?.shoppingCart[0],
| ^ 56 | cartId: response.data?.shoppingCart[0]?._id,
57 | newsLetterSubscription: response.data?.newsLetterSubscription[0],
58 | favouriteProducts: response.data?.favouriteProducts

Display products under 'Favourite' tab

When navigating to the Favourite(heart) tab the user should be able to view the products as in the shop tab
Should also be able to add to cart and remove from favourite's

Sign up to newsletter

Users should be able to sign up to the newsletter.

Scenarios:
If user is signed in and subscribed already - do not show
if user is signed in and not subscribed - show
if non authenticated user - show

if email already exists -> deny/allow?

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.