https://github.com/alexstormwood/feb24-t4w2-express-auth

ExpressJS auth with MongooseJS.

https://github.com/alexstormwood/feb24-t4w2-express-auth

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (2.8%) to scientific vocabulary
Last synced: 9 months ago · JSON representation

Repository

ExpressJS auth with MongooseJS.

Basic Info
  • Host: GitHub
  • Owner: AlexStormwood
  • License: mit
  • Language: JavaScript
  • Default Branch: main
  • Size: 23.4 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created over 1 year ago · Last pushed over 1 year ago
Metadata Files
Readme License

README.md

feb24-t4w2-express-auth

ExpressJS auth with MongooseJS.

Models:

  • User model
    • username
    • password
    • Roles by ID
  • Role model
    • name

Routes:

  • localhost:3000/signup
    • POST
    • username, password
    • create a new user
    • return a jwt
  • localhost:3000/login
    • POST
    • username, password
    • checks provided data against database
    • returns a JWT
  • localhost:3000/users/:userID
    • GET
    • requires a valid JWT header
    • gets one user and returns it
  • localhost:3000/users/refresh
    • POST
    • requires a valid JWT header
    • checks a JWT and provides a new one if it's valid
    • returns a JWT

Owner

  • Name: Alex
  • Login: AlexStormwood
  • Kind: user
  • Location: Sydney
  • Company: @BigfootDS

Game & XR developer based in Sydney, Australia. Main tools are Unity3D and C#. Working for myself as BigfootDS, and working for Coder Academy as a teacher.

GitHub Events

Total
  • Watch event: 1
  • Push event: 6
  • Fork event: 1
  • Create event: 2
Last Year
  • Watch event: 1
  • Push event: 6
  • Fork event: 1
  • Create event: 2

Dependencies

package-lock.json npm
  • 177 dependencies
package.json npm
  • nodemon ^3.1.7 development
  • bcrypt ^5.1.1
  • cors ^2.8.5
  • dotenv ^16.4.5
  • express ^4.21.1
  • helmet ^8.0.0
  • jsonwebtoken ^9.0.2
  • mongoose ^8.8.0