Code Monkey home page Code Monkey logo

minijsproject's Introduction

Mini Database Terminal Application

This is a small JavaScript program designed for learning purposes, simulating a mini database with various functionalities such as creating, reading, updating, and deleting items.

Features

Create: Add new items to the storage. Read: View all items in the storage along with their total weight. Update: Modify existing items in the storage. Delete: Remove items from the storage.

Installation

  1. Clone the repository: git clone https://github.com/yourusername/mini-database-terminal-app.git Note: Replace yourusername with your actual GitHub username in the clone URL.

  2. Install Dependencies: npm install

  3. To run the program, use the following command: node index.js

The Project contains:

Main Menu

C: Create a new item. R: Read and display all items. U: Update an existing item. D: Delete an item. Q: Quit the program. Code Overview

Files

index.js: Main program file. data/classes.js: Contains the Item class definition. data/template.js: Contains template strings for menus. Global Storage The globalStorage array holds all items in the database, each represented as an object with properties: name, id, type, quantity, and weight.

Functions

startProgramm(): Main function to display the menu and handle user input. updateItem(): Function to update an existing item (needs to be implemented). deleteItem(): Function to delete an item (needs to be implemented).

Contributing

Feel free to fork this repository and submit pull requests. Suggestions and improvements are welcome!

Enjoy learning and have fun with this mini database terminal application! If you have any questions or issues, please open an issue in the repository.

minijsproject's People

Contributors

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