Skip to content

potyoma/image-uploader

Repository files navigation

ImageKeeper

The app allows you to upload and view saved images.

Tech stack:

  • Backend:
    • Node.js
    • Nest
    • Prisma
    • PostgreSQL
  • Frontend
    • TypeScript
    • React.js
    • Next.js
    • zustand

Run the project locally

First run the database:

docker compose up -d

Then add .env file to apps/server with following data (replace with your credentials or use default)

POSTGRES_HOST="localhost"
POSTGRES_PORT="5432"
POSTGRES_NAME="mydb"
POSTGRES_USER="admin"
POSTGRES_PASSWORD="admin"

DATABASE_URL="postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_NAME}?schema=public"

Nest step is to apply migrations:

pnpm run migrate

And finally run both backend and frontend with:

pnpm run dev

Known issues

In production image might not be saved sometimes. The problem is with mounted disk which is managed by cloud provider.