Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build

Run npm ci to install dependencies. Build client cd client && ng build.

Running the server

Run node server/app.js. App will be on http://localhost:8000/. Example user is login: "example@example.com", password: "password"

Implementation details

Json Web Tokens

I choosed to implement authentification by json web tokens, because it is simpler than session based implementation. It was the first time that I used jwt, as I only used sessions before. I was able to create demo with working multi-tab support and api endpoint api/data/secret only accessible after login. Jwt implementation simplifies login/logout logic, so logout is not longer async. Therefore logout button is without loading spinner and also there is no /logout endpoint, but I think that I demonstrated the same behavior in login case.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages