Express API server that implements Basic Authentication, with signup and signin capabilities, using a Postgres database for storage. - for Code Fellows 401
Deployed at: auth-api
to install run git clone git@github.com:Kellen-Linse/bearer-auth
cd into bearer-auth
run npm install
To start server run : npm start
- POST
http://localhost:3000/signin- Sign In - POST
http://localhost:3000/signup- Sign Up
-
bearer auth
-
Object
{ "username":"john", "password":"foo" } { "id": 11, "username": "john", "password": "$2b$10$Iik33GUA2aV/soxRQ7dOl.KrEDMPv3.Ab0IU9DTdKlGQQfCTiFlpq", "updatedAt": "2022-01-18T02:13:16.422Z", "createdAt": "2022-01-18T02:13:16.422Z" } clothes { name: DataTypes.STRING, color: DataTypes.STRING, size: DataTypes.STRING } food { name: DataTypes.STRING, calories: type: DataTypes.NUMBER, type: DataTypes.ENUM('fruit', 'vegetable', 'protein') }