A simple Pokedex application built with Next.js, TypeScript, Prisma, and tRPC.
- Next.js
- TypeScript
- Prisma
- MySQL
- tRPC
- Material UI
- Search for individual Pokemon
- Search for multiple Pokemon
- Filter Pokemon by type
- Node.js (>=14.0.0)
- npm (>=6.0.0) or yarn (>=1.22.0)
- Docker (>=20.10.0)
git clone https://github.com/your-username/my-pokedex.git
cd my-pokedex
Create a .env file in the root directory of the project and add the following variables:
DATABASE_URL="mysql://root:password@localhost:3306/my-pokedex"
Note: The start-database.sh script will update the DATABASE_URL password if necessary.
Execute the start-database.sh script to start a MySQL database using Docker:
./start-database.sh
- Install WSL (Windows Subsystem for Linux)
- Install Docker Desktop for Windows
- Open WSL
- Run the script - ./start-database.sh
npm install
# or
yarn install
npx prisma generate
npx prisma migrate dev --name init
npm run db:seed
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
You can use Prisma Studio to view data in the database. Start Prisma Studio with the following command:
npx prisma studio
Work in progress...