Welcome to Smart Saver, a website designed to help households and supermarkets manage their food inventory efficiently. Our platform empowers users to track product expiry dates by scanning QR codes, set alarms for impending expirations, and ultimately save money on daily purchases.
Explore our web application: Smart Saver
- Navigate to the login page.
- Enter your credentials (
email
,password
). - Receive the required response from the server in toast or text form.
- Ensure the server is running.
- If not logged in, navigate to the signup page (
/signup
).
- Ensure the backend is correctly set up and the server is running.
- Fill all the required fields (
name
,email
,phone number
,password
). - Receive the required response from the server in toast or textual error form.
- After successful registration, automatically navigate to the
/login
page. - Login to the application as per the above steps.
- Ensure that we are using JWT and BcryptJS for authorization.
- Obtain the Authorization token after logging in.
- The token is valid for the next 1 hour.
- Utilize application services while the token is valid.
-
Sign Up for Twilio:
- Go to Twilio's website and sign up for a new account if you haven't already.
-
Get Twilio API Credentials:
- Note down your Account SID and Auth Token from the Twilio dashboard.
-
Purchase a Phone Number:
- Obtain a phone number from Twilio for sending SMS notifications.
-
Install Twilio SDK:
- Install the Twilio Node.js package in your project:
npm install twilio
- Install the Twilio Node.js package in your project:
-
Integrate Twilio into Your Backend:
- Use the Twilio SDK to send SMS notifications from your backend.
- Initialize Twilio with your Account SID and Auth Token.
- Craft and send notification messages using Twilio's API.
-
Test SMS Notifications:
- Ensure users receive notifications correctly.
-
Handle Errors and Edge Cases:
- Implement error handling for failed SMS delivery or invalid phone numbers.
- Consider retry mechanisms for failed deliveries.
-
Monitor Usage and Costs:
- Keep track of Twilio API usage and associated costs.
-
Document Integration Steps:
- Update project documentation with detailed Twilio setup instructions.
-
Final Testing and Deployment:
- Deploy the updated project with Twilio integration.
Share your feedback and insights with the Smart Savers community to improve the platform.
Effortlessly scan QR codes to access instant product information.
Explore additional features including product management sections.
https://www.figma.com/design/naU9W2cQQa04wB6WsEjkr2/Untitled?node-id=0%3A1&t=DazRyOMA1k4rRDTr-1
- HTML5
- CSS
- JS
- ReactJS(need to be converted for better performance)
- MongoDB
- Express JS
- Node JS
- SuperJEST
- Tailwind
- Twilio
- After successfully setting up the project you can view the project on port
3000
- Give access to the camera and log in with your credentials as well.
- Now scan the particular product QR and get all the details.
- If the software couldn't find your product then our database is missing the product details inn it.
- Add that particular product by following the above steps as mentioned above.
-
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
-
Make Your Changes Make the necessary modifications or additions to the project files.
-
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
- Create a Pull Request Navigate back to the original repository and open a pull request from your forked repository.
- Navigate through the
backend
folder - Setup
.env
file and setMONGO_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
To ensure the robustness of our application, we use Jest and Supertest for testing.
-
Install Dependencies
npm install jest supertest --save-dev
-
Create Test Files Create test files in the tests folder (or another preferred directory).
-
Writing Tests Use Jest and Supertest to write your tests.
-
Run Tests To run the tests, use the following command:
npm test
-
You can also add a script in your package.json for convenience:
"scripts": { "test": "jest" }
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
- Login to your vercel here: https://vercel.com/login
- Now select the forked repository on vercel website in your dashboard.
- 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
Now if you tested the application and believe that it has your functionality or bug has been fixed as well then raise the PR(Pull Request).
Try our web application here: https://esmartgit.vercel.app/