Skip to content

silox/warehouse-manager

Repository files navigation

Storage Manager

A warehouse inventory management and transaction tracking application written in Next.
Deployed here on Vercel.

General tech stack

  • Next.js + Typescript
  • Tailwind
  • Prisma
  • Next Auth
  • Tanstack query
  • react-hook-form
  • zod

Installation

Database

In order to run the application you need to set up postgres database running. There is a Dockerfile ready for you in db/ folder. Run

docker compose up -d

to start running your local postgres database in the background.

Environment

Copy template.env file to .env and fill in necessary environment variables. DATABASE_URL can be for example postgresql://root:123@localhost:5432/pv247-storage-manager?schema=public for the local development.

In order create credentials for GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET, you need first to set up Google OAuth (check these steps).

Application

You need to install node packages and migrate database.

npm install --legacy-peer-deps
npm exec prisma migrate dev

Access Database UI

Visit http://localhost:9002 and login screen will appear: You can connect to the devel db using:

  • System: PostgreSQL
  • Server: db (name provided by docker-compose
  • Username: root
  • Password: 123
  • Database: pv247-storage-manager

Run

npm run dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published