e-commerce App
You can find LIVE DEMO HERE
Author - @Gabriel
- Home Page Photo - unsplash.com
- API dummy/fake JSON data - dummyjson.com
- Firebase V9 E-mail and password Auth.
- Firebase E-mail verification.
- Firebase Password Reset.
- Firebase Database shopping-cart | collections/docs
- Update shopping cart on login and on refresh page when more than one login session is established.
- Light/dark mode toggle.
- Local storage encryption.
- Friendly mobile responsive design.
Clone the project
git clone https://github.com/9a8ri3L/e-commerce-REACTjs-RTK-FirebsaeV9.git
Install Dependencies
For npm
npm install
For yarn
yarn install
To run this project, you will need to create and add the following environment variables to your vite.config.js
file:
Firebase_configuration
ENCRYPT_STORAGE
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import { VitePWA } from "vite-plugin-pwa";
export default defineConfig({
plugins: [
react(),
VitePWA({
registerType: "autoUpdate"
})
],
define: {
"process.env": {
REACT_APP_FIREBASE_API_KEY: xxxxxxx,
REACT_APP_FIREBASE_AUTH_DOMAIN: xxxxxxx,
REACT_APP_FIREBASE_DATABASE_URL: xxxxxxx,
REACT_APP_FIREBASE_PROJECT_ID: xxxxxxx,
REACT_APP_FIREBASE_STORAGE_BUCKET: xxxxxxx,
REACT_APP_FIREBASE_MESSAGING_SENDER_ID: xxxxxxx,
REACT_APP_FIREBASE_APP_ID: xxxxxxx,
REACT_APP_FIREBASE_MEASUREMENT_ID: xxxxxxx,
REACT_APP_ENCRYPT_STORAGE: xxxxxxx
}
}
});
npm run dev
or
yarn dev
Front-End:
- Reactjs
- Redux
- React-Redux
- Redux ToolKit
- Styled-Components
- Axios
- Vitejs
- React-Icons
- Styled-Media-Query
- UUID
- Encrypt-Storage
Back-End:
If you have any feedback, please don't hesitate to contact me.
Contributions are always welcome!
License MIT
(c) 2022 Gabriel
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.