To be able to use MySQL, you need to install XAMPP, WAMP, MAMP, or similar software. This is so that we can use ES6 Module Syntax to export and import modules. "test": "echo "Error: no test specified" & exit 1" So that the “package.json” file looks like the following: Next, add the following code to the “package.json” file: Next, install nodemon globally by typing the following command in the terminal: Npm install express mysql2 sequelize jsonwebtoken bcrypt cookie-parser dotenv cors Next, install express, mysql2, sequelize, jsonwebtoken, bcrypt, cookie-parser, dotenv and cors by typing the following command in the terminal: Next, open a terminal in Visual Studio Code on the menu bar terminal => new terminal.Īfter that, type the following command in the terminal to create a “package.json” file: You can download Visual Studio Code at the following link, then install it on your computer:Īfter the " jwt-auth" folder is opened using Visual Studio Code, create a sub folder named " backend" in the " jwt-auth" folder. I also suggest you to use Visual Studio Code. Then open the " jwt-auth" folder using the code editor, here I use Visual Studio Code. You are free to make it anywhere, either in C, D, or on the Desktop. Install DependencyĬreate a folder on your computer, here I name it " jwt-auth".
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |