Skip to content

Uses Next.js, Tailwind CSS, Prisma, PostgreSQL / Postgres, Docker

Notifications You must be signed in to change notification settings

eodeluga/my-pokemon

Repository files navigation

My Pokemon

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.

Getting Started

Running using shell (manual setup..working to fix Docker implementation)

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

  1. 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"
  1. Create the database required by the application
sudo -u postgres psql -c 'create database pokemon;'
  1. 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

About

Uses Next.js, Tailwind CSS, Prisma, PostgreSQL / Postgres, Docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published