This repository contains a full-stack application with separate front-end and back-end directories. The front-end is built using React and includes visualization capabilities via Chart.js. The back-end is built on Express and integrates with Google APIs.
Before you begin, ensure you have met the following requirements:
You'll need Node.js and npm installed on your computer to run this project. npm (Node Package Manager) is distributed with Node.js, which means that when you download Node.js, you automatically get npm installed on your computer.
- Download the Windows installer from the Node.js website.
- Run the installer:
- Open the downloaded Node.js
.msiinstaller file from your browser or file manager. - Follow the prompts in the setup wizard. Make sure to include "npm package manager" in your installation options.
- Open the downloaded Node.js
- Verify the installation by opening Command Prompt and running:
node -v npm -v
This should display the Node.js and npm version if the installation was successful.
- Install using Homebrew (recommended):
- If you don’t have Homebrew installed, open your terminal and paste:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" - Then, install Node.js and npm by running:
brew install node
- If you don’t have Homebrew installed, open your terminal and paste:
- Alternatively, download the macOS installer:
- Go to the Node.js website website and download the macOS installer.
- Follow the instructions to install Node.js and npm. The installer should set up everything needed.
- Verify the installation in your terminal:
node -v npm -v
This will show the installed versions of Node.js and npm, confirming the installation.
To get started with this project, clone the repository and install dependencies for both the front-end and back-end.
git clone https://github.com/IvorZhu331/Full-Stack-Project.git
cd full-stack-projectcd front-end
npm install
cd ..cd back-end
npm install
cd ..npm installThis project uses concurrently to run both the front-end and back-end servers with a single command. To start both servers:
npm startThis will launch the front-end React application on localhost:3000 and the back-end Express server on localhost:3001.