Create a local backup of your Pokémon Trading Card set! This project uses the Pokémon TCG API to load all of the cards in the base4
set and back them up to a local MongoDB database. It is built using Next.js (React) and Mongoose (MongoDB).
- Clone this repository locally.
- Run
npm install
inside the project. - Head to the MongoDB website and download MongoDB Community Server for your operating system. Accept all of the default installation suggestions. You can choose not to download their GUI.
- For macOS installation, follow this guide.
- Ensure the MongoDB service is started. This is automatic on Windows if you have just installed it.
- Inside the project, run
npm run dev
. - View the site in your browser at
http://localhost:3000/
once the terminal confirms that the project has compiled successfully.
The site includes the ability to:
- Create a backup of the
base4
card set from the Pokémon TCG API to a local dabatase.- Note: If the data already exists, the site will check the incoming data and update it to the latest version.
- Purge that backup from the local database.
- Search the local database for a card, based on the name, HP and rarity.
- Note: This is an
AND
field, not anOR
field. This was an intentional decision in order to be able to filter cards - for example, all "Rare" cards with 90 HP.
- Note: This is an