From d07d6c6992c9b27ea8bcac2e4569c830beef1022 Mon Sep 17 00:00:00 2001 From: swlho Date: Mon, 2 Dec 2024 14:14:06 +0800 Subject: [PATCH] fix: update instructions for running locally --- packages/backend/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/backend/README.md b/packages/backend/README.md index 0643591..2075455 100644 --- a/packages/backend/README.md +++ b/packages/backend/README.md @@ -4,14 +4,14 @@ 1. Clone down the repo 2. Run ``npm install`` -3. Create a .env file in the root folder and populate it with the following key/values: +3. Create a .env file in the packages/backend folder and populate it with the following key/values: -``PORT=3000``
+``PORT=8000``
``DATABASE_URL="mongodb+srv://v52team20:**[PASSWORD]**@cluster0.en5nt.mongodb.net/**[DATABASE_NAME]**?&retryWrites=true&w=majority&appName=Cluster0"`` **For the password and database name, refer to the Discord chat or message me** -4. Run ``npx prisma generate`` -5. Run ``npm run dev`` +4. Run ``npx prisma generate`` (make sure you are in the packages/backend before running this cmd) +5. From the root folder, run ``npm run dev`` Visit http://localhost:3000/api/v1 for the list of available API endpoints \ No newline at end of file