These are APIs to LOGIN, LOGOUT, REGISTER, get Recipe, get queryRecipe, get detailRecipe, get History, delete History, get MyFavourite, post Favourite, delete Favourite, and also POST ingredientPredict
Salin perintah ini di terminal kamu atau git bash
- Clone project from github
git clone https://github.com/Project-Dishcover/DISHCOVER-API.git - Change Directory to DISHCOVER-API
cd DISHCOVER-API- copy .env from .env.example
cp .env.example .env
- Change the database name in the .env file
DB_DATABASE_DEV=mysql://root:@localhost:(your port)/yourdb- Install All Dependencies
npm install- Migrate Database
npx prisma migrate dev --name init - Run the server
npm run dev