DSFrey / basic-auth

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Project: basic-auth

Author: Student/Group Name

Problem Domain

A simple srever to practice basic authentication

Links and Resources

Setup

.env requirements

i.e.

  • PORT - Port Number
  • DATABASE_URL - URL to the running Postgres instance/db

How to initialize/run your application (where applicable)

  • npm run db:config then edit the created config file.
  • npm run db:create to create the database.
  • npm start to start the application.

Features / Routes

  • POST : /signup - creates a new user
  • POST : /signin - verifies a user against the database

Tests

  • Tests are run with npm test
  • verify that a user can be created, a correct login succeeds, and an incorrect login fails

UML

basic-auth UML

About

License:MIT License


Languages

Language:JavaScript 100.0%