Skip to content

This is a command line interface (CLI) application built in Node.js and uses Basic and Bearer authorization to sign up and sign in users, then presents the user with a prompt to create, update, or delete a note. The notes are saved to the user's account, and the full list of notes is displayed back to the user when the user selects options to ei…

License

Notifications You must be signed in to change notification settings

peterjstaker/auth-api-CLI

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

auth-api-CLI

Deployed Link: https://auth-api-cli.herokuapp.com/

Testing (GitHub Actions): https://github.com/A-TEAM-401/auth-api-CLI/actions

Overview and Description

This is a command line interface (CLI) application built in Node.js and uses Basic and Bearer authorization to sign up and sign in users, then presents the user with a prompt to create, update, or delete a note. The notes are saved to the user's account, and the full list of notes is displayed back to the user when the user selects options to either update or delete a note. The application uses the Node package dependencies Chalk Animation and Figlet to create beautiful rainbow colored ASCII art in the terminal. The server is deployed to heroku, so the cli app runs through the cli.js file and sends requests to the deployed server.

Demo

auth-api-CLI

Setup

Clone the repository from the following link, and then follow the instructions in the sections below: https://github.com/peterjast/auth-api-CLI.git

.env Requirements

To run the application, you must create a .env file at the root level, with the following environment variable:

SERVER=https://auth-api-cli.herokuapp.com

Dependencies

Before attempting to run the application locally, it is vital to install the required dependencies. Do so by running the following command in the terminal from the root level:

npm i

Run the Application

To run the application, run the following command in the terminal at the root level:

npm start

Tests

To run tests, you need to add the following environment variables to your .env file:

PORT=3333
MONGODB_URI=mongodb://localhost:27017/cli-api
SECRET=coolsecret

Then run the following command in the terminal at the root level:

npm run test

Test Coverage Report

Coverage Report

Architecture

Tree

UML

UML

About

This is a command line interface (CLI) application built in Node.js and uses Basic and Bearer authorization to sign up and sign in users, then presents the user with a prompt to create, update, or delete a note. The notes are saved to the user's account, and the full list of notes is displayed back to the user when the user selects options to ei…

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%