Creating a basic website with Node.js and Vue.js
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
- 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
- Components layout
- Navigation
- User information
- Log out