Skip to content

Latest commit

 

History

History
31 lines (26 loc) · 755 Bytes

File metadata and controls

31 lines (26 loc) · 755 Bytes

Background

An example application uses Nextjs, a server-side rendering front-end framework which reads from news.json and images under images storing it to a relational database.

Setup

Create a postgres_user.txt, postgres_password.txt, postgres_url.txt for docker secrets.

Run with Docker

docker compose up
npx prisma migrate dev
npx prisma db seed

Run prisma database studio

npx prisma studio

Access docker containers

docker ps
docker exec -it {test-postgres}
psql -U postgres

Tech Stack

Next.js
TypeScript Prisma.io
PostgreSQL
TailwindCSS