/crudCLI

:sparkles: CRUD CLI with Javascript, NodeJS, JSON, CommanderJS, Test (MochaJS) and more..

Primary LanguageJavaScriptMIT LicenseMIT

Database Image

CRUD CLI

Commit Commit

CRUD CLI, projeto desenvolvido que consiste em fazer operações (CREATE, READ, UPDATE & DELETE) via Command Line Interface, basicamente operando em informações armazenadas em um arquivo local de formato JSON.

A aplicação foi desenvolvida com NodeJS, utilizando ferramentas como CommandJS para manipular os valores passados via CLI e MochaJS para efetuar testes e entre outras.

Screenshot

Executando ⚙️

# Clone
$ git clone https://github.com/EricNeves/crudCLI.git

# Install Dependencies
$ cd crudCLI && npm install

#test
$ npm test

# Help
$ npm start
# List all users
$ node src/index.js -A
# Create a new user
$ node src/index.js -C -N ericneves -E ericnevesr@gmail.com
# List user by ID
$ node src/index.js -L -I 123
# Edit user by ID
$ node src/index.js -U -I 123 -N eric -E eric@crud.com
# Delete user by ID
$ node src/index.js -R -I 123

Ferramentas 🛠

  • NodeJS
    • Path
    • FS (fs/promises)
    • CommanderJS
    • MochaJS

License

Commit