-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Completed code with additions to Readme file including links and refe…
…rences
- Loading branch information
Jason Williams
committed
Jun 2, 2017
1 parent
d6b301f
commit bab1893
Showing
5 changed files
with
61 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
// Use IntelliSense to learn about possible Node.js debug attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Launch Program", | ||
"program": "${workspaceRoot}\\bin\\www" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,43 @@ | ||
# Node Server Auth API | ||
|
||
``` | ||
> git clone | ||
> cd | ||
> git clone https://github.com/jwill9999/Node_Auth_API_with_JWT_Boilerplate.git | ||
> cd Node_Auth_API_with_JWT_Boilerplate | ||
> npm install | ||
> npm run dev | ||
> This will open automatically on http://localhost:3000 | ||
``` | ||
|
||
## Instructions | ||
## Key Features | ||
|
||
> Node Express Server | ||
> API Backend | ||
> MongoDb Database | ||
> Authorisation | ||
> Passport Js Local and JWT | ||
> Json Web Tokens | ||
> AuthGuards | ||
> Bcrypt Salt and Hash Encryption | ||
|
||
## Links | ||
|
||
[Expressjs](https://expressjs.com/) | ||
|
||
[passportjs Local](http://passportjs.org/docs/username-password) | ||
|
||
[Passportjs JWT](https://github.com/themikenicholson/passport-jwt) | ||
|
||
[MongoDb Docs](https://docs.mongodb.com/manual/) | ||
|
||
[Bcrypt for nodejs](https://github.com/shaneGirish/bcrypt-nodejs) | ||
|
||
|
||
UNDER CONSTRUCTION :) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
|
||
module.exports = function date(req, res, next) { | ||
|
||
if (req.url === '/') { | ||
let date = new Date(); | ||
date = date.toUTCString(); | ||
console.log(`${req.method} ${req.url} was accessed at ${date}`); | ||
} | ||
next(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters