Skip to content

Null78/university-market

Repository files navigation

University Market project

Framework and Tools

  • Nextjs: A full stack framework (frontend + backend)
  • Prisma: Database ORM (the library that communicate with the database)
  • TypeScript: Javascript with small extra features (such as types and interfaces)
  • MySQL: the database used

Getting Started using Docker

Dependencies

First run:

make up

then open http:https://localhost:3000 with your browser to see the result.

to access the shell inside the container you can run:

make

or you can restart the containers by running:

make up-recreate

you can also connect to the MySQL server on localhost:3306 using these credentials:

  • username: root
  • password: root

Getting Started locally

Dependencies

After you download the project, run:

npm install

and then make sure variables in .env file match with the database credentials

DATABASE_URL="mysql:https://app:password@mysql:3306/upm-market"

DB_USERNAME="app"
DB_PASSWORD="password"
DB_DATABASE="upm-market"

please make sure you also updated the DATABASE_URL variable like this (without {}):

DATABASE_URL="mysql:https://{USERNAME}:{PASSWORD}@mysql:{PORT}/{DATABASE NAME}"

after you're done, make sure to run these two commands

npx prisma generate
npx prisma db push --force-reset

then run:

npm run dev

then open http:https://localhost:3000 with your browser to see the result.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published