This is a little web application that uses Next.js, Prisma and PostgreSQL, that presents Pokemon as cards and allows you to filter them by height and weight.
This will require that PostgreSQL is installed, and the user name and password in .env file will need to be changed to match your environment
- First create a .env file in the folder root with the following details
POSTGRES_USER="postgres"
POSTGRES_PASSWORD="<your_postgres_user_password>"
POSTGRES_DB="pokemon"
DATABASE_URL="postgresql://postgres:<your_postgres_user_password>@localhost:5432/pokemon?schema=public"
- Create the database required by the application
sudo -u postgres psql -c 'create database pokemon;'
- Then enter the following commands
npm install
npm run generate
npm run build
npm start
You can now access the application using this url in your browser http://localhost:3000