Giter VIP home page Giter VIP logo

yeasin-shop's Introduction

"# ecommerce-react" "# ecommerce-react"

yeasin-shop with react | E-commerce react app

Simple ecommerce react js app with firebase [typescript]. ![Firebase Deploy]

Run Locally

1. Install Dependencies

$ npm install

2. Create a new firebase project

Login to your google account and create a new firebase project here

Create an env file - Set filename.env.prod file for production and .env.devfor development and save it in the root of your project folder and add the following configuration details. You can either use the same configuration details for both development and production but it's best to make separate projects. It can be found on your firebase project settings.

// SAMPLE CONFIG .env.dev, you should put the actual config details found on your project settings

FIREBASE_API_KEY=AIzaKJgkjhSdfSgkjhdkKJdkjowf
FIREBASE_AUTH_DOMAIN=yourauthdomin.firebaseapp.com
FIREBASE_DB_URL=https://yourdburl.firebaseio.com
FIREBASE_PROJECT_ID=yourproject-id
FIREBASE_STORAGE_BUCKET=yourstoragebucket.appspot.com
FIREBASE_MSG_SENDER_ID=43597918523958
FIREBASE_APP_ID=234598789798798fg3-034

After setting up necessary configuration, create a Database and choose Cloud Firestore and start in test mode

3. Run development server

$ npm run dev-server

Build the project

$ npm run build

Project is running at

http://localhost:8080/

How to add products or perform CRUD operations for Admin

  1. Navigate to your site to /signup
  2. Create an account for yourself
  3. Go to your firestore collection users collection and edit the account you've just created. Change the role from USER to ADMIN.
  4. Reload or sigin again to see the changes.

Firebase Admin to be integrated soon

Features

  • Admin CRUD operations
  • Firebase authentication
  • Firebase auth provider authentication
  • Account creation and edit

"# ecommerce-react" "# ecommerce-react"

Before adding product

screencapture-localhost-8080-2021-07-31-15_51_16 featured product

After adding product

main

Basket or cart

1

2

sign in and sign up

sign up

Admin panel

admin admin panel product list add new product

firebase database screen shots

firebase fir2

yeasin-shop's People

Contributors

yeasintamim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

yeasin-shop's Issues

deploying issues into Heroku

I faced heroku H10 error.
[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=game-test-1.herokuapp.com fwd=37.26.146.185 dyno= queue= wait= connect= service= status=503

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.