Git Product home page Git Product logo

cyphernyx / node-staff-cms Goto Github PK

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

This application is a content management system that allows non-developers to easily view and interact with information stored in databases. It's a command-line application to assist managing a company's employee database, using Node.js, Inquirer, and MySQL.

License: MIT License

JavaScript 100.00%
inquirer javascipt mysql-database node-js orm

node-staff-cms's Introduction

Node Staff CMS

Module 12 Challenge - SQL Challenge: Employee Tracker

License: MIT

Description

This application is a content management system that allows non-developers to easily view and interact with information stored in databases. It's a command-line application to assist managing a company's employee database, using Node.js, Inquirer, and MySQL.

JavaScript Node.js MySQL

Table of Contents

Demo

Initial Prompts prompt results view all

Installation

  1. Clone this GitHub repository to your local machine.
git clone https://github.com/CypherNyx/node-staff-CMS.git
  1. Open a terminal or command prompt and navigate to the cloned repository's directory.
  2. Run npm i to install the necessary dependencies.

NPM and other Dependencies:

  • Node.js
  • Inquirer
  • dotenv
  • mysql2
  • console.table


Features

Navigation

  • Home page shows a menu to select:
    • View all departments
    • View all roles
    • View all employees
    • Add a department
    • Add a role
    • Add an employee
    • Update employee role -- Coming Soon!

Departments

  • View all departments - See a list of all departments with their id and name
  • Add a department - Add a new department by entering the name

Roles

  • View all roles - See a list of all job roles with their id, title, department, and salary
  • Add a role - Add a new role by entering the title, salary, and department

Employees

  • View all employees - See a table of all employees with their id, first name, last name, job title, department, salary, and manager
  • Add an employee - Add a new employee by entering their first name, last name, role, and manager
  • Coming Soon: Update employee role - Select an employee and update their job role

Database

  • Persistent data storage using a database to store departments, roles, employees
  • Ability to perform CRUD operations on the data


Contributing

  1. Fork it (https://github.com/CypherNyx/node-staff-CMS/fork)
  2. Create your feature branch (git checkout -b suggest/new-feature)
  3. Commit your changes (git commit -m 'Add some new-feature')
  4. Push to the branch (git push origin suggest/new-feature)
  5. Create a new Pull Request

Credits

I wrote the db Query to view all employees (index.js line: 131 - 143) and also created the variable to map over the department choices (index.js line: 184 and 186) with the assistance of Christian Guido.

License

License: MIT

https://opensource.org/licenses/MIT

Questions

GitHub CypherNyx
Email: [email protected]

node-staff-cms's People

Contributors

cyphernyx 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.