/basic-auth

Deploying an Express server implements basic authentication, with Signin and Signup, using Mongo DB.

Primary LanguageJavaScriptMIT LicenseMIT

Basic Auth

Deploying an Express server implements basic authentication, with Signin and Signup, using Mongo DB.


Author

Enas Batayneh


Links

Setup

  • express
  • (.env) file
    • PORT
    • MONGOOSE_URI

Dependencies needs to install

  • npm init -y
  • npm i dotenv express cors mongoose bacse-64 bcrypt
  • npm i -D jest supertest eslint
  • sudo service mongodb start

To Run the Application

  1. clone the repository
  2. run the command (nodemon)

Testing

  • test file (server.test.js)

  • run the command(npm test)

img

UML Diagram

img