This project is a web application that allows users to keep track of the Pokémon they have caught. The app uses JWT (JSON Web Token)-based authentication and a MySQL database to store user and Pokémon information.
-
User registration and login
-
CRUD (create, read, update and delete) of Pokémon
-
Access protected by JWT authentication
-
Data storage in a MySQL database
-
Node.js
-
Express
-
JWT
-
MySQL
-
express-mysql-session
-
body-parser
-
Clone this repository and access the project directory
-
Install the dependencies by running npm install
-
Create a MySQL database and run the provided table creation script
-
Set the database access credentials and JWT secret in the keys.js file
-
Start the server by running npm start
-
Access the application at http://localhost:3000
-
Clone this repository and access the project directory
-
Install the dependencies by running npm install
-
Create a MySQL database and run the provided table creation script
-
Set the database access credentials and JWT secret in the keys.js file
-
Set up the ids and tokens for the tests, in the tests folders
-
Run the tests and fix a credential or a bug
-
Run it with
node .
-
Improve and Contribute
-
Do a pull request