SOEN341Fall2024 / TeamXL-SOEN341_Project_F24

0 stars 0 forks source link

IterationX-SOEN341_Project_F24

Team Name

IterationX

Team Members

Project Description

Frameworks Used

Node.js, Express.js, EJS, PostgreSQL, Boostrap

How To Run The Web Application Locally :

Prerequisites

Step 1: Clone the Repository

First, clone the repository to your local machine:

    git clone https://github.com/SOEN341Fall2024/IterationX-SOEN341_Project_F24.git

Navigate to the project directory:

    cd IterationX-SOEN341_Project_F24.git

Step 2: Initialize npm (if not already done)

    npm init -y

Step 3: Install Dependencies

    npm install express ejs axios pg dotenv body-parser method-override
    npm install --save-dev nodemon

or simply,

    npm install 

Step 4: Set up environment variables

Create a .env file in the project root:

    touch .env

Edit the .env file to include your environment-specific settings (Make sure to use the same variable name): DB_PASSWORD=your_postgres_password and other database related details.

Step 5: In pgAdmin (PostgreSQL)

Create a new database, and run the queries from the two .sql files.

Step 6: Start the server and Access the Website

  nodemon app.js

Open your web browser and navigate to localhost:3000. This will open the Peer Assessment Application.