Giter Club home page Giter Club logo

thebigbookman / employee-tracker Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 356 KB

Solo project- Back end application where users can create a relational database for their employees with information about salary, job, manager and job role. Created relational database with REST API for the user to be able to perform complete CRUD queries and view the database within the command line.

JavaScript 100.00%
backend database express mysql nodejs npm-package

employee-tracker's Introduction

Employee-Tracker

Introduction

This is a server-side application that allows the user to view information about a workplace through querying the database. They can query about departments, roles and employees information.

Technologies

This is a backend application that uses Javascript, Node.js, Express.js, NPM packages and MySql.

Live Demonstration URL

https://drive.google.com/file/d/15rB57lI7IGguM8PixYzD2ICHcf95mXYn/view

Functionality

Initialization

Once the application starts, through the console the user will be presented with a ascii logo art of the application name and creator. They are then prompted with a selection of what they would like to do- view departments, roles or employees- add departments, roles or employees- update employees roles. This prompting is done by the inquirer npm package.

GET

If the user chooses to view departments, roles or employees, they will be creating a GET request that will query the database through specific MySql commands and the express API route. The information will be collected from the database and then returned as a response to the user in the form of a table, using console.table npm package.

POST

If the user chooses to add a department, role or employee, then they will be creating a POST request. The information the user provides when informed, will be sent to the API route and input to the database using MySql commands. The console will log an update of what has just been added to the database for confirmation for the user. The database will be immediately updated and then it is possible to view the newly added items with the GET requests again.

PUT

If the user chose to update the employee role then they will be creating a PUT request that will update the role of the employee within the database through the API routes.

API

Using modular routing, the API route page isn't congested with routes to be chosen and therefore making information easier to understand. The use of connecting the database of MySql is important to then send MySql queries through Express and being able to send and receive information back and forth to the user.

MySql

Using a schema folder to create a layout for the tables and a seeds folder to input some initial data. Queries were produced through Express and the API to request and receive data.

GitHub Repo URL

https://github.com/TheBigBookMan/Employee-Tracker

employee-tracker's People

Contributors

thebigbookman avatar

Stargazers

Leonard Oduneye avatar

Watchers

 avatar

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.