Scanago is a Flutter application designed to streamline and digitalize the in and out entry system using barcodes. The robust backend, built with Node.js, Express, and MongoDB, ensures seamless and efficient data management. This application not only saves time but also provides additional functionalities like night entry and mess food rating.
- Barcode Scanning: Quickly scan barcodes for entry and exit.
- Digital Entry System: Eliminate paper-based entry logs.
- Night Entry: Special functionality for night-time entries.
- Mess Food Rating: Rate the quality of the mess food.
- Flutter installed on your machine.
- A working knowledge of Dart and Flutter.
- Node.js and npm installed.
- MongoDB installed and running.
-
Clone the repository:
git clone https://github.com/om13rajpal/scanago.git cd scanago
-
Install Flutter dependencies:
flutter pub get
-
Navigate to the backend directory and install dependencies:
cd backend npm install
-
Start the backend server:
cd backend npm start
-
Run the Flutter app:
flutter run
The backend of Scanago is built with Node.js, Express, and MongoDB. Follow these steps to set up the backend:
-
Configure MongoDB: Ensure that MongoDB is running and accessible. You can configure the connection string in
backend/db/db.js
. -
Environment Variables: Create a
.env
file in thebackend
directory with the following variables:PORT=3000 MONGO_URI=your_mongodb_connection_string SECRET_KEY=your_secret_key EMAIL=your_email PASSWORD=your_password EMAIL_KEY=email_secret_key
-
Start the backend server:
npm start
The backend server will start on the port specified in the .env
file (default is 3000).
-
Scan Barcode: Open the app and use the barcode scanner to scan in and out.
-
Night Entry: Use the special night entry feature for logging entries during night hours.
-
Rate Mess Food: Rate the food in the mess to provide feedback.
-
Admin Panel: To view the admin panel, register yourself with the email
admin@gmail.com
and a password of your choice.
Contributions are welcome! Please fork the repository and create a pull request with your changes. Make sure to follow the coding standards and include relevant tests for your changes.
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Make your changes.
- Commit your changes (
git commit -am 'Add new feature'
). - Push to the branch (
git push origin feature-branch
). - Create a new pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
Happy Scanning with Scanago! 🚀