Skip to content

Full-stack restaurant app built with Next.js and PostgreSQL

Notifications You must be signed in to change notification settings

yarkincaner/restaurant

Repository files navigation

Built With

  • Next
  • Typescript
  • PostgreSQL
  • Docker
  • Prisma
  • Stripe

Getting Started

Installing packages

yarn

Starting the app

First, configure docker file which is located in: src/docker/docker-compose.yml

POSTGRES_USER: YOUR_USERNAME
POSTGRES_PASSWORD: YOUR_PASSWORD
POSTGRES_DB: YOUR_DB

Then start docker with:

docker compose up

Configure your .env file with your db's username, password and db:

DATABASE_URL="postgresql://{YOUR_USERNAME}:{YOUR_PASSWORD}@localhost:5432/{YOUR_DB}?schema=public"

If you want to see db tables visually, then start prisma studio:

npx prisma studio

Finally

yarn run dev

Why am i using yarn instead of npm?

  • It installs packages in parallel, so it is faster. Npm installs them sequentially
  • Npm saves packages to dependencies when you pass --save tag into command. Yarn do this by default.
  • It requires less memory space.
  • Yarn has offline support.

Acknowledgments

About

Full-stack restaurant app built with Next.js and PostgreSQL

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published