Skip to content

IDishaJain/esmart.github.io

 
 

Repository files navigation

Smart Saver

Stars Forks Issues Pull Requests Maintenance

About

It's for a website called Smart Saver, which allows household and many super market people to have control over their food items. The website allows users to scan the product QR code via our website scanner. After scanning , the users will have to give access to their mobile devices in order to get notified about their product's expiry date. The users even have chance to set alaram in prior of 2 days or 5 days or 15 days. So this is the overview of our website where people can save the income they are spending on dalily product purchase.

Try our web application: https://esmart-github-io.vercel.app/

And don't forget to give star ⭐ to this amazing project repository.

STEPS TO PROCEED:

Logging the User:

  • Navigate to the login page
  • Enter your credentials (email , password)
  • You will get the required response from server in toast or text form
  • Ensure to run the server
  • If not logged in navigate through the signup page (/signup)

Registering the User(Locally):

  • First, ensure you have set the backend correctly and the server is running.
  • Then fill all the required fields(name , email , phone number , password )
  • You will get the required response from the server in toast or textual error form.
  • After successfully registering the user you will navigate automatically to /login page.
  • Login to the application as per the steps told above.

Authorization Tokens

  • Be ensure that in the application currently we are using the JWT and BcryptJS for authorisation in the application.
  • For getting the Authorization token you must be logged in before.
  • Now after getting in the application your token will be valid for next 1 hour.
  • Untill the token is valid you can use our application services as well.

Twilio Account Setup

  1. Sign Up for Twilio

  2. Get Twilio API Credentials

    • After signing up, navigate to the dashboard and note down your Account SID and Auth Token. You'll need these to authenticate your requests to Twilio's API.
  3. Purchase a Phone Number

    • Purchase a phone number from Twilio that you'll use to send SMS notifications to users. You can do this from the Twilio console.
  4. Install Twilio SDK

    • Install the Twilio Node.js package in your project:
      npm install twilio
  5. Integrate Twilio into Your Backend

    • In your backend code, use the Twilio SDK to send SMS notifications.
    • Initialize Twilio with your Account SID and Auth Token.
    • Use the purchased phone number as the sender and your users' phone numbers as recipients.
    • Craft a message containing the notification details, such as product expiry date, and send it using Twilio's API.
  6. Test SMS Notifications

    • Test the integration by triggering SMS notifications in your application. Ensure that users receive the notifications correctly.
  7. Handle Errors and Edge Cases

    • Implement error handling for cases such as failed SMS delivery or invalid phone numbers.
    • Consider implementing retry mechanisms for failed SMS deliveries.
  8. Monitor Usage and Costs

    • Keep track of your Twilio API usage and associated costs to ensure they align with your budget and usage expectations.
  9. Document Integration Steps

    • Update your project documentation with detailed instructions on how to set up Twilio for SMS notifications. Include information on where to find Twilio credentials, how to purchase a phone number, and how to integrate Twilio into the project's backend.
  10. Final Testing and Deployment

    • Once everything is set up and tested, deploy your updated project with Twilio integration to your preferred hosting platform.

Remember to keep your Twilio credentials secure and never expose them in publicly accessible code repositories.

Review Section:

Share your feedback and insights with the Smart Savers community. Your reviews help us improve and guide others in making informed choices.

QR Code Scanning:

Effortlessly scan QR codes to access instant product information, including ingredients, pricing, and environmental impact.

Others:

Explore additional pages including product management sections, and learn more and the benefits of the same. ##Here is the figma design of our project.

https://www.figma.com/design/naU9W2cQQa04wB6WsEjkr2/Untitled?node-id=0%3A1&t=DazRyOMA1k4rRDTr-1

Tech Stack Used

  1. HTML5
  2. CSS
  3. JS
  4. ReactJS(need to be converted for better performance)

Get Started

  1. After successfully setting up the project you can view the project on port 3000
  2. Give access to the camera and log in with your credentials as well.
  3. Now scan the particular product QR and get all the details.
  4. If the software couldn't find your product then our database is missing the product details inn it.
  5. Add that particular product by following the above steps as mentioned above.

Setup and Installation

  1. Fork and Clone the Repository To get started with contributing to our project, fork the repo and then clone it to your local machine:

      git clone https://github.com/usha-madithati/esmart.github.io
      cd esmart.github.io
  2. Make Your Changes Make the necessary modifications or additions to the project files.

  3. Commit and Push Once you've made your changes, commit them and push to your fork:

    git add .
    git commit -m "Describe your changes here"
    git push
  1. Create a Pull Request Navigate back to the original repository and open a pull request from your forked repository.

Backend Setup

  • Navigate through the backend folder
  • Setup .env file and set MONGO_URL and other dev dependencies regarding in .env.sample and set your own .env file
  • Make the conection string and copy the string in the mongodb compass and start server in the mongodb cluster in compassUI or on website respectively
  • Now install all dependencies required for backend setup npm install
  • Now run the server with npm start
  • Your backend server will be running on PORT: 6352

Contributing

We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's:

  • Reporting a bug
  • Discussing the current state of the code
  • Submitting a fix
  • Proposing new features

Deployment

  • Login to your vercel here: https://vercel.com/login
  • Now select the forked repository on vercel
  • Now after selecting the repository select the root or default branch to get deployed. It can be seen here: https:vercel.com/new/clone?repository-url=https://github.com/usha-madithati/esmart.github.io
  • Check and test whole website application and its functionality
  • Add the live hosted link of changed website things in your PR.

Try our web application here: https://esmartgit.vercel.app/

Smart saver Infographic

About

It's for a website called smart saver, where people can make their savings in an innovative and smart way

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 96.3%
  • CSS 1.9%
  • HTML 1.8%