Live Demo: https://store-discount.vercel.app/
To run this project, you will need the following credential file:
- Firebase Admin SDK
Go to firebase console -> pick your project -> project setting -> service account tab -> genereate new private key - Firebase Config/Client
Go to firebase console -> pick your project -> project setting -> in general tab scroll down -> click add app button -> pick web logo "<\>" -> fill app nickname & click register app -> copy all const firebaseConfig variabel value -> make a new json file -> paste value from firebaseConfig variabel before and save the json file
Note: Note: if you are someone i know, request & download my credential Here
- Install node.js version 18.16.0 here
Make sure your node.js and npm already install in your device using, open cmd and run:Note: In development i usingnode -v npm -v
Windows 10 Pro
,Visual Studio Code
,node version 18.16.0
, andnpm version 9.5.1
. - Credential File
- Docker (optional)
Follow this step to run this repostory code in your local device:
- Open git bash and Clone the repo
git clone https://github.com/Muhthoriqas/Store-DiscountStore-Discount.git
- Go to project folder
cd Store-Discount
- Open the project at VS Code
code .
- open terminal, go to backend directory, & install package
cd backend && npm install
- Make sure you already have the Credential File and store the credential file name in
app/config/config.sample.json
file. - And also Change
projectID, bucketName, and databaseURL
value atapp/config/config.sample.json
file, with your GCP project id, bucket name, and firestore database url - Change
config.sample.json
file name toconfig.json
- Start the server
npm start, or npm run dev (using nodemon)
- open new terminal and go to front end directory
cd frontend && npm install
- Start the frontend server
npm run dev
Note:
- Steps 5-7 are only performed if you do not have access to My Credential. If you are someone i know, please request to obtain my credentials and config file. After you download my credential make sure to store it at app/config folder.
Contributions are always welcome! All types of contributions are encouraged and valued. It will make it a lot easier for us maintainers and smooth out the experience for all involved. The community looks forward to your contributions. 🎉
And if you like the project, but just don't have time to contribute, that's fine. There are other easy ways to support the project and show your appreciation, which i would also be very happy about:
- Star the project
- Tweet about it
- Refer this project in your project's readme
- Mention the project at local meetups and tell your friends/colleagues
Muhammad Thoriq Ali Said - LinkedIn - Github - Instagram
Bellow is useful resource that i used in my project