The original Hexo Node Admin was published more than 2 years ago. I want to take this time to revamp this whole project so that it is still relevant. Take a look here.
This time I use React.js with Material UI to write the whole front end. I’ve been using Vue.js for quite some time before I started looking at React. Vue.js was quite intuitive because its
JSON Web Token is a good solution for authentication of these SPAs (single page application) because by using it, the whole back end can now be stateless, meaning it does not have to maintain state (if user is logged in) like we did in the v0 of Hexo Node Admin where the back end maintains sessions. This is achieved by tokens, tokens that are signed and verified by JWT libraries according to the protocol. Writing a simple middleware should do the job for a lot of cases.