Node Clean Architect


Technology Stack

  1. Express
  2. Prisma ORM + Mysql2
  3. JOI Validation

Note:

Prisma ORM usage:

  1. Set the DB_URL in the .env file to point to your existing database. If your database has no tables yet, read https://pris.ly/d/getting-started
  2. Set the provider of the datasource block in schema.prisma to match your database: postgresql, mysql, sqlite, sqlserver or mongodb (Preview).
  3. Run npx prisma db pull to turn your database schema into a Prisma schema.
  4. Run npx prisma generate to generate the Prisma Client. You can then start querying your database.