Skip to content

This application consists of Login Systems for Employees and Admins. Employees can only register with their credentials and log in to view their credentials. Admins can view all employee lists and can sort with parameters and paginate.

Notifications You must be signed in to change notification settings

badman-returns/Employe-Login-System-MYSQL-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Employe Login System

This application consists of Login Systems for Employees and Admins. Employees can only register with their credentials and login to view their credentials. Admins can view all employee list and can sort with parameters and paginate.

Production Link

API Documetation

Required Tools And Technology Stack

  • Node.js - Javascript Runtime for Servers.
  • MYSQL Workbench - Database Management Tool
  • Git Bash - GitCLI for Git Operations
  • POSTMAN - API Testing Tool
  • TypeScript -an open-source language which builds on JavaScript, one of the world’s most used tools, by adding static type definitions.

Prerequisites

  • Requires MYSQL service to run and create database.
  • Start the MYSQL database service before starting backend.
  • Create a Database for this application
Environmental Variables

DB_HOST - Set your Database Host e.g - localhost or 127.0.0.1 for Local
DB_USER =  Database User
DB_PASSWORD = Databse Password
DB_NAME = Database Name
ADMIN_DEFAULT_PASSWORD = Set Default Password for Admin
PORT = Set Default Port
To run the application

$ cd Antartica Global
$ npm i
$ npm run local - Local Development Environment
$ npm start -  Production  Environment

Folder Structure and Organization

---src
    +---configs
    +---database
    +---interfaces
    +---middleware
    +---model
    +---routes
    +---utility
     |   app.ts
     |   server.ts

The entry point of this application is server.ts. This file creates an instance of the app and start to listen on given specific port. In the app.ts routing, intializing middleware, initializing database tables is done. Inside the src folder we have configs folder which contains file that stores configuration variables. The database folder contains a file where the database tables are created and master data is inserted. Next the interface folder contains custom generated types which is used across the application. The middlware folder contains middlewares which is used for accessing protected routes and also login. Inside the model folder all the database model files are present that contains queries for respected database operations. The routes folder has been divided into admin and public and each of them has their routing and controllers in it and the utility folder contains utilities.

About

This application consists of Login Systems for Employees and Admins. Employees can only register with their credentials and log in to view their credentials. Admins can view all employee lists and can sort with parameters and paginate.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published