Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Create a simple website authentication system with Vue.js and Node.js

License

Notifications You must be signed in to change notification settings

amirhnajafiz-archive/vue-authentication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 

Repository files navigation

Vue-Auth

Creating a basic website with Node.js and Vue.js

Setup Node.js server

First set up a Node.js server that will handle authentication for us. For our Node.js server, we will use SQLite as the database of choice.

Run the following command to install SQLite driver:

$ npm install --save sqlite3

Because we are dealing with passwords, we need a way to hash passwords. We will use bcrypt to hash all our passwords. Run the following command to install it:

$ npm install --save bcrypt

We also want a way to confirm the users we authenticate when they try to make a request to a secured part of our application. For this, we will use JWT. Run the following command to install the JWT package we will use:

$ npm install jsonwebtoken --save

To read json data, we will send to our server, we need body-parser. Run the following command to install it:

$ npm install --save body-parser

Source

Guides

Todo

  • Set the basics for card creating
  • Method for saving cards into database
  • Get users cards from database and show them in front
  • Errors and exception handling

Doing

  • Components layout

Done

  • Navigation
  • User information
  • Log out