Skip to content

Commit

Permalink
fix: update instructions for running locally
Browse files Browse the repository at this point in the history
  • Loading branch information
swlho committed Dec 2, 2024
1 parent 92e74b7 commit d07d6c6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`` <br>
``PORT=8000`` <br>
``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

0 comments on commit d07d6c6

Please sign in to comment.