/authentication-using-node-typescript-mongodb

Authentication using node typescript mongodb

Primary LanguageTypeScriptApache License 2.0Apache-2.0

Authentication using nodejs,typescript and mongodb

ℹ️ About

A Node application for authentication using typescript,express and mongoDB 1_NFt9edTKLJ-zL6yTdTX0nA

🔨 Technologies Used

  • typescript
  • express
  • mongoDB
  • jsonwebtoken
  • lodash

🚀 Installation

  1. Get the code

    git clone git@github.com:AurangzaibRamzan/authentication-using-node-typescript-mongodb.git && cd authentication-using-node-typescript-mongodb
  2. Install dependencies

    npm install
  3. Starts the development server

     npm run dev
  4. Starts the production server

     npm run start
  5. Runs the linter.

     npm run lint
    npm run lint-fix

🔀: Routes

  1. http://localhost:3000/user/signup
  2. http://localhost:3000/user/login
  3. http://localhost:3000/user/ (with token in header i.e header :{token:""})
  4. http://localhost:3000/user/changepassword

🤝 Contributing PRs Welcome

The process of submitting a pull request is fairly straightforward and generally follows the same pattern each time:

Show instructions
  1. Search GitHub for an open or closed PR that relates to your submission. You don't want to duplicate effort.

  2. Fork this project, clone your fork, and configure the remotes:

    # Clone your fork of the repo into the current directory
    git clone https://github.com/<your-username>/<repo-name>
    # Navigate to the newly cloned directory
    cd <repo-name>
    # Assign the original repo to a remote called "upstream"
    git remote add upstream https://github.com/AurangzaibRamzan/authentication-using-node-typescript-mongodb.git
  3. If you cloned a while ago, get the latest changes from upstream:

    git checkout master
    git pull upstream master
  4. Create a new branch (off the master branch) to contain your feature, change or fix:

    git checkout -b <branch-name>
  5. After you have made your changes, run tests and lint checks:

    # for test
    npm test
    # for lint check
    npm run lint
    # for lint fix
    npm run lint-fix
  6. Commit your changes using a descriptive commit message.

  7. Rebase onto upstream

  8. Push your branch to GitHub:

    git push origin <branch-name>
  9. Open a Pull Request using your branch and fill the required template.

IMPORTANT: By submitting a patch, you agree to license your work under the same license as that used by the project.

Having trouble with repo? Check out our documentation or contact Support aurangzaib987@gmail.com

📄 License

This project is licensed under the Apache License 2.0, see the LICENSE file for details.