Have you ever wondered how much you have spent on E-food? Well, this project is for you.
Built with Node.js and Express.js to serve the data from an endpoint of REST API. For the frontend part, built with React.js , Mantine and Tailwind to build a minimal design by me. Includes dynamic Chart and interactive map filled with the stores you have bought from.
View Demo
ยท
Report Bug
ยท
Request Feature
- First Order
- Latest Order
- Total Orders
- Total Spendings
- Unique stores
- Number of tips
- Most frequent store
- Most frequent product
- Payement types ( Credit Card, Cash, PayPal, Google Pay, Apple Pay)
- Chart with statistics for orders per year alongside spendings per year
- Map with all the stores you bought from, with number of orders and total spending on each store
To get a local copy up and running follow these simple example steps.
This is an example of how to list things you need to use the software and how to install them.
- npm
npm install npm@latest -g
- Clone the repo
git clone https://github.com/eliac7/efood-analytics.git
- Install NPM packages for the outer folder, frontend and backend
npm install
- Open a terminal on the folder and enter:
npm run dev
The dashboard endpoint (GET /api/orders) returns only calculated statistics. To save the raw e-food orders as JSON locally, first obtain a valid e-food session ID, then run this from the repository root:
$env:EFOOD_SESSION_ID = "your-session-id"
npm run download:orders --prefix backendThe command writes a timestamped JSON file to backend/data/. That directory is ignored by Git, so your order history will not be committed. To choose a filename, use:
npm run download:orders --prefix backend -- --out data/my-orders.jsonAvoid sharing your session ID or the exported JSON, since both may contain personal information.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt for more information.
Ilias Thalassochoritis - @ilias_thal - elias_thal(at)hotmail.com
Project Link: https://github.com/eliac7/efood-analytics