Code Monkey home page Code Monkey logo

employee-management-system's Introduction

Employee-Management-System

This application demonstrates an employee management system for a food delivery company. It handles functionalities like creating employees and admin with authentication and authorization, admin assigning tasks based on the employee roles, and employees can view a list of restaurant orders coming to the application and list tasks they are assigned to.

Technologies Used:

  • Flutter for web (frontend)

    • Plugins/Libraries:
      • provider for state management
      • hive for local storage
      • fluro for routing
  • Node with typescript(backend)

    • Plugins/Libraries:
      • express for api development
      • twilion for OTP(verification)
      • mysql for storing data
      • JWT for tokenization and flutter_secure_storage to encrypt key value

Configure .env file for your project(server)

REFRESH_TOKEN_SECRET = ****

TWILIO_ACCOUNT_SID = ****
TWILIO_AUTH_TOKEN = ****

TWILIO_SERVICE_SID = ****

Configure .env file for your project(frontend)

ENCRIPTION_ADMINKEY_STORAGE = ****

EMS_USER_BOX = ****
ENCRIPTION_USERKEY_STORAGE = ****

EMS_USER_TYPE_BOX = ****
EMS_USER_ROLE_ID = ****

Installing and start the server

  • move to backend directory :- (cd backend)

  • If node is not installed then Install [node] (https://nodejs.org/en/download/)

  • Run the following command to load all the module dependencies for this app:

    npm install or yarn install

  • In my project I used nodemon for the project to run in developement or you can change script in package.Json based on your preference:

    nodemon start or

Open http://localhost: to view it in the browser.

Installing and start the frontend(Ui)

  • move to frontend directory :- (cd frontend)

    flutter pub get

  • to start and run the flutter project

    flutter run

Screenshot

welcome login-admin-error-handling admin-loadin employee-login otp admin-dashboard employee-dashboard admin-employee admin-role admin-task admin-logout

employee-management-system's People

Contributors

bmuna avatar

Stargazers

 avatar  avatar

Watchers

 avatar

employee-management-system's Issues

Error: The method 'showSnackBar' isn't defined for the class 'ScaffoldState

lib/controllers/auth/auth_provider.dart:53:34: Error: The method 'showSnackBar' isn't defined for the class 'ScaffoldState'.
 - 'ScaffoldState' is from 'package:flutter/src/material/scaffold.dart' ('/opt/flutter/packages/flutter/lib/src/material/scaffold.dart').
Try correcting the name to the name of an existing method, or defining a method named 'showSnackBar'.
            Scaffold.of(context).showSnackBar((SnackBarWidget.MainSnackBarError(
                                 ^^^^^^^^^^^^
lib/controllers/auth/auth_provider.dart:77:20: Error: The method 'showSnackBar' isn't defined for the class 'ScaffoldState'.
 - 'ScaffoldState' is from 'package:flutter/src/material/scaffold.dart' ('/opt/flutter/packages/flutter/lib/src/material/scaffold.dart').
Try correcting the name to the name of an existing method, or defining a method named 'showSnackBar'.
                  .showSnackBar((SnackBarWidget.MainSnackBarSuccess(
                   ^^^^^^^^^^^^
lib/controllers/auth/auth_provider.dart:86:36: Error: The method 'showSnackBar' isn't defined for the class 'ScaffoldState'.
 - 'ScaffoldState' is from 'package:flutter/src/material/scaffold.dart' ('/opt/flutter/packages/flutter/lib/src/material/scaffold.dart').
Try correcting the name to the name of an existing method, or defining a method named 'showSnackBar'.
              Scaffold.of(context).showSnackBar(
                                   ^^^^^^^^^^^^
lib/controllers/auth/auth_provider.dart:94:32: Error: The method 'showSnackBar' isn't defined for the class 'ScaffoldState'.
 - 'ScaffoldState' is from 'package:flutter/src/material/scaffold.dart' ('/opt/flutter/packages/flutter/lib/src/material/scaffold.dart').
Try correcting the name to the name of an existing method, or defining a method named 'showSnackBar'.
          Scaffold.of(context).showSnackBar((SnackBarWidget.MainSnackBarError(
                               ^^^^^^^^^^^^
lib/controllers/auth/auth_provider.dart:100:32: Error: The method 'showSnackBar' isn't defined for the class 'ScaffoldState'.
 - 'ScaffoldState' is from 'package:flutter/src/material/scaffold.dart' ('/opt/flutter/packages/flutter/lib/src/material/scaffold.dart').
Try correcting the name to the name of an existing method, or defining a method named 'showSnackBar'.
          Scaffold.of(context).showSnackBar(
                               ^^^^^^^^^^^^
lib/controllers/auth/auth_provider.dart:129:20: Error: The method 'showSnackBar' isn't defined for the class 'ScaffoldState'.
 - 'ScaffoldState' is from 'package:flutter/src/material/scaffold.dart' ('/opt/flutter/packages/flutter/lib/src/material/scaffold.dart').
Try correcting the name to the name of an existing method, or defining a method named 'showSnackBar'.
                  .showSnackBar((SnackBarWidget.MainSnackBarSuccess(
                   ^^^^^^^^^^^^
lib/controllers/auth/auth_provider.dart:138:32: Error: The method 'showSnackBar' isn't defined for the class 'ScaffoldState'.
 - 'ScaffoldState' is from 'package:flutter/src/material/scaffold.dart' ('/opt/flutter/packages/flutter/lib/src/material/scaffold.dart').
Try correcting the name to the name of an existing method, or defining a method named 'showSnackBar'.
          Scaffold.of(context).showSnackBar(
                               ^^^^^^^^^^^^
lib/controllers/auth/auth_provider.dart:142:32: Error: The method 'showSnackBar' isn't defined for the class 'ScaffoldState'.
 - 'ScaffoldState' is from 'package:flutter/src/material/scaffold.dart' ('/opt/flutter/packages/flutter/lib/src/material/scaffold.dart').
Try correcting the name to the name of an existing method, or defining a method named 'showSnackBar'.
          Scaffold.of(context).showSnackBar(
                               ^^^^^^^^^^^^
lib/controllers/main/user_provider.dart:99:34: Error: The method 'showSnackBar' isn't defined for the class 'ScaffoldState'.
 - 'ScaffoldState' is from 'package:flutter/src/material/scaffold.dart' ('/opt/flutter/packages/flutter/lib/src/material/scaffold.dart').
Try correcting the name to the name of an existing method, or defining a method named 'showSnackBar'.
            Scaffold.of(context).showSnackBar(
                                 ^^^^^^^^^^^^
lib/controllers/main/user_provider.dart:141:34: Error: The method 'showSnackBar' isn't defined for the class 'ScaffoldState'.
 - 'ScaffoldState' is from 'package:flutter/src/material/scaffold.dart' ('/opt/flutter/packages/flutter/lib/src/material/scaffold.dart').
Try correcting the name to the name of an existing method, or defining a method named 'showSnackBar'.
            Scaffold.of(context).showSnackBar(
                                 ^^^^^^^^^^^^
lib/controllers/main/user_provider.dart:162:34: Error: The method 'showSnackBar' isn't defined for the class 'ScaffoldState'.
 - 'ScaffoldState' is from 'package:flutter/src/material/scaffold.dart' ('/opt/flutter/packages/flutter/lib/src/material/scaffold.dart').
Try correcting the name to the name of an existing method, or defining a method named 'showSnackBar'.
            Scaffold.of(context).showSnackBar(
                                 ^^^^^^^^^^^^
Target kernel_snapshot failed: Exception

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.