GitHunt
AM

amir2965/Self-Service-Food-Ordering-Kiosk

Generative AI-Based Self-Service Food Ordering Kiosk 🍽️ This Generative AI-Based Self-Service Kiosk simplifies food ordering in restaurants with key features: πŸ” Food Ordering πŸ‘€ Member Login πŸ† Reward System 🧾 Receipt Printing πŸ“± User-Friendly Interface

πŸš€ Self-Service-Food-Ordering-Kiosk

Welcome to the my repository! Follow the instructions below to set up and run the project locally.


πŸ“ Table of Contents

  1. Clone the Repository
  2. Install Dependencies
  3. Set Up Environment Variables
  4. Running the Project Locally
  5. Additional Configuration (Optional)
  6. Troubleshooting

1️⃣ Clone the Repository

Start by cloning this repository to your local machine.

git clone https://github.com/amir2965/Self-Service-Food-Ordering-Kiosk.git
cd Self-Service-Food-Ordering-Kiosk
2️⃣ Install Dependencies
Install the required dependencies using npm or yarn.

bash
Copy
Edit
npm install

or

yarn install
This will install all the necessary packages listed in the package.json file.

3️⃣ Set Up Environment Variables
To configure the project’s environment variables (such as JWT Secret or database credentials), you'll need to create a .env file.

Steps:
Copy the .env.example file to a new file named .env:

bash
Copy
Edit
cp .env.example .env
Edit the .env file with your own values. For example:

plaintext
Copy
Edit
JWT_SECRET=your-own-secret-key-here
πŸ”‘ Generate a Secure JWT Secret
To generate a strong and secure JWT Secret, you can run the following command in your terminal:

bash
Copy
Edit
node -e "console.log(require('crypto').randomBytes(64).toString('hex'))"
This will output a random 64-byte string that you can use as your JWT_SECRET value.

⚠️ Important:
Do not push the .env file to GitHub for security reasons.
Ensure that your .env file is added to the .gitignore file to prevent accidental commits.
4️⃣ Running the Project Locally
Once you have all the dependencies installed and the environment variables set up, you can start the project with the following command:

bash
Copy
Edit
npm start

or

yarn start
This will start the application on your local server, typically accessible at http://localhost:3000. Check the logs to confirm the port and any other details.

5️⃣ Additional Configuration (Optional)
Cloud Deployment:
If you're planning to deploy this project to the cloud (e.g., Heroku, AWS, etc.), you can set the environment variables in the respective platform's interface.

For Heroku, for example, you can set the JWT_SECRET like this:

bash
Copy
Edit
heroku config:set JWT_SECRET=your-secret-key
For AWS or Google Cloud, you can store your secrets in their respective Secret Manager services for secure management.

6️⃣ Troubleshooting
Here are some common issues and their fixes:

Missing Dependencies:
If you see errors related to missing modules, try running the following command again:

bash
Copy
Edit
npm install

or

yarn install
JWT Secret Undefined:
If you encounter errors saying that JWT_SECRET is undefined, double-check your .env file and ensure the variable is properly set.

πŸ”’ Security Reminder
Always generate strong secrets for production environments.
Never expose sensitive information such as API keys, database passwords, or JWT secrets in the codebase.
πŸŽ‰ Enjoy the Project!
Thank you for using my project! If you have any issues or suggestions, feel free to open an issue or contribute to the project.

Happy coding! πŸš€

Screenshot 2025-01-24 021306
Screenshot 2025-01-24 021241
Screenshot 2025-01-24 021033
Screenshot 2025-01-24 021024
Screenshot 2025-01-24 021000
Screenshot 2025-01-24 020949
Screenshot 2025-01-24 020907
Screenshot 2025-01-24 020851
Screenshot 2025-01-24 020841
Screenshot 2025-01-24 020829
Screenshot 2025-01-24 020815
Screenshot 2025-01-24 020752
Screenshot 2025-01-24 021349
Screenshot 2025-01-24 021325
Screenshot 2025-01-24 021315

Languages

JavaScript56.9%CSS30.4%HTML9.6%Python3.1%

Contributors

Created March 11, 2025
Updated December 19, 2025