Before running the project, make sure you have the following installed and configured:
-
Visual Studio Code
Download and install VS Code from https://code.visualstudio.com/.
-
Node.js and npm
Download and install Node.js (which includes npm) from https://nodejs.org/.
Verify installation in the terminal:node -v npm -v
If successfully installed, this should output the installed version numbers of Node.js and npm.
-
HomeBrew (macOS only)
Install Homebrew to manage packages like Git:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"Update Homebrew:
brew update
-
Git
Install Git using Homebrew:
brew install git
Verify Git installation:
git --version
-
Clone the Repository
Use Git to clone the project repository:
git clone https://github.com/your-username/your-repo.git
After completing these steps, you are ready to run the project!
-
Open the Project
Open the
digital-diaryormy-appfolder in VS Code. -
Navigate to the Correct Directory
Ensure you are in the
my-appdirectory.
If you are indigital-diary, run:cd my-app -
Install Dependencies
npm install
-
Start the Development Server
npm run dev
-
Open the App in Browser
Click the link in the terminal or open in your browser: http://localhost:3000.