Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 1 KB

README.md

File metadata and controls

32 lines (25 loc) · 1 KB

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