Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fakkiie/comp3220-team2

COMP-3220 Final Project
https://github.com/fakkiie/comp3220-team2

Last synced: 19 days ago
JSON representation

COMP-3220 Final Project

Awesome Lists containing this project

README

        

DATABASE CONNECTION TAKES ABOUT 20-30 SECONDS FOR FIRST TIME LAUNCH WHEN THE SERVER HASN'T BEEN RAN IN A WHILE

https://comp-3220-team2-31wp.vercel.app/

**Project Setup
Prerequisites**

Make sure you have the following installed on your machine:
Python 3.x

Node.js (which includes npm)

**Setup Instructions**

1. **Clone the Repository**

First, clone the project to your local machine:

Run git clone https://github.com/Fakkiie/COMP3220-Team2.git

Navigate to the project directory by running cd COMP3220-Team2

2. **Setting Up the Python Environment**

You'll need to install some Python libraries to run the Python scripts.

Ensure pip (Python's package manager) is installed on your system.

Install the required Python libraries:

Run pip install pandas geopandas

These are required for handling CSV and KML files.

3. **Setting Up the React Frontend**

Navigate to the React app folder:

Run cd windsor-heatmap

Install the required Node.js packages:

Run npm install to install all dependencies.

4. **Running the React App**

To start the React development server, run npm start in the windsor-heatmap directory.

The app will be accessible at http://localhost:3000.

5. Running Python Scripts
Ensure Python is installed and navigate to the python folder.

To process the CSV or KML data, run:

python3 python/processData.py to process ward boundary data.

python3 python/serviceRequest.py to handle service requests.

6. Running API endpoints
Cd into the API folder.

run node index.js.

You will see the port opened at 5007.

If any errors occur, run npm install and try again.