Skip to content

unwxnted/PokedexJWT_API

Repository files navigation

PokedexJWT

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.

Features

  • User registration and login

  • CRUD (create, read, update and delete) of Pokémon

  • Access protected by JWT authentication

  • Data storage in a MySQL database

Techs used

  • Node.js

  • Express

  • JWT

  • MySQL

  • express-mysql-session

  • body-parser

Installation and use

  1. Clone this repository and access the project directory

  2. Install the dependencies by running npm install

  3. Create a MySQL database and run the provided table creation script

  4. Set the database access credentials and JWT secret in the keys.js file

  5. Start the server by running npm start

  6. Access the application at http://localhost:3000

Contribution

  1. Clone this repository and access the project directory

  2. Install the dependencies by running npm install

  3. Create a MySQL database and run the provided table creation script

  4. Set the database access credentials and JWT secret in the keys.js file

  5. Set up the ids and tokens for the tests, in the tests folders

  6. Run the tests and fix a credential or a bug

  7. Run it with

node .
  1. Improve and Contribute

  2. Do a pull request

About

a pokedex api, which uses JWT for authentication

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published