This README will guide you through installing Node.js and Yarn (using your command line), cloning the repository, and spinning up the local development environments for both the server and website projects.
-
Git: Make sure you have Git installed.
Download Git here. -
Command line or terminal: You will be using a shell like bash, zsh, or PowerShell.
-
Download and install using
nvm(Node Version Manager)# If you don't have nvm installed, install it: curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash source ~/.nvm/nvm.sh # Install the latest stable version of Node.js nvm install node # Verify Node.js is installed node --version
-
Alternatively, download from nodejs.org (LTS version).
- Install via the official Node.js Installer
Go to nodejs.org and choose the LTS version for Windows. - Verify Node.js is installed
node --version
Once Node.js is installed, you can install Yarn globally with:
npm install --global yarnVerify installation:
yarn --version- Navigate to the directory where you want the project to live:
cd path/to/your/projects/ - Clone the repo (replace
<repo-url>with the repository’s actual URL):git clone <repo-url>
- Navigate into the newly cloned directory:
cd <cloned-repository-name> # e.g., my-project
This repository has two packages located in the ./packages/server and ./packages/website directories.
- Change directory into the server package:
cd packages/server - Install dependencies:
yarn install
- Start the server in development mode:
yarn run dev
This will spin up your server, typically accessible via a local port (e.g., http://localhost:3000 or whichever port is configured).
In a separate terminal window or tab:
- Navigate to the website package:
cd packages/website - Install dependencies:
yarn install
- Start the website in development mode:
yarn run dev
This will spin up your local development environment for the website, typically on a different port (e.g., http://localhost:3000 or whichever port is configured).
- Server: Once running, you should see server logs indicating that it is listening on a specific port.
- Website: Open the browser to the website’s local dev URL (e.g.,
http://localhost:3000) to see your project running in the browser.
- Stopping the Dev Environment: In each terminal running the server or website, press
Ctrl + Cto stop the process. - Re-running the Dev Environment: Just repeat the
yarn run devcommand in the respective directory. - Working with Git: Remember to commit your changes often, create branches when working on new features, and merge back when ready.
That’s it! You now have Node.js, Yarn, and the local dev environments for both server and website running on your machine. Happy coding!