MakeYourDish propose des recettes de plats et de cocktails en fonction des ingrédients stipulé
Use sql query to create a new database called makeyourdish
Exemple : create database makeyourdish
Change or put in .env file the DATABASE_URL and the name and the password
DATABASE_URL="postgresql://name:password@localhost:5432/dbname?schema=public"
And adding in the .env too
SERVER_PORT=3030
Use the command:
npx prisma db push
If the prisma schema is not push in the database use this command :
npx prisma migrate dev
Commands
init Set up Prisma for your app
generate Generate artifacts (e.g. Prisma Client)
db Manage your database schema and lifecycle
migrate Migrate your database
studio Browse your data with Prisma Studio
format Format your schema
Flags
--preview-feature Run Preview Prisma commands
Examples
Set up a new Prisma project :
prisma init
Generate artifacts (e.g. Prisma Client) :
prisma generate
Browse your data :
prisma studio
Create migrations from your Prisma schema, apply them to the database, generate artifacts (e.g. Prisma Client) :
prisma migrate dev
Pull the schema from an existing database, updating the Prisma schema :
prisma db pull
Push the Prisma schema state to the database :
prisma db push
A COMPLETER
- GIL AMARO Dylan
- MARQUET Pierre
- BIDAULT Romain
- RIGAL Geoffrey