Skip to content

Latest commit

 

History

History
74 lines (49 loc) · 1.27 KB

File metadata and controls

74 lines (49 loc) · 1.27 KB

Super: Proyecto Final

Universidad: UTN FRRO

Miembros del equipo:

  • Bruno
  • Ramiro
  • Fausto

Preview

You can see the site in this link entering with the following credentials:

Role Username Password
Admin bruno 1234
Seller rami 1234
Seller faus 4321

Developing

Requirements to run this:

  • git
  • node
  • pnpm
  • docker

Once you've cloned a project and installed dependencies with pnpm install

Copy the environment variable file

cp .env.example .env

Start the local docker container with the Database

docker compose up -d

Then, start a development server:

pnpm dev

Local Database

To run seeds for the database, use the following command:

pnpm seed

The seeding script can be found in ./src/lib/seeders/

If you want to see what is stored in your local database, you can use drizzle-studio:

npm run inspect

Migrations

When you change something in the ./lib/server/drizzle/schema.ts file, you need to generate the migrations before merging to main. Use the following command:

pnpm add-migration

Note: don't create the migration before pulling the latest version of main.