Skip to content

A web app for searching University course offerings with professor rating and degree requirements

Notifications You must be signed in to change notification settings

JingfeiPeng/WaterFlow-Works

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Waterflow Works (Prev. CS348 Project)

Running the app

Populate data

The project runs on PostgresDB.

  • Install Postgres's Command Line Interface: psql.

  • Create a user and a database using Postgres.

  • Run

cd database
source init_database.sh [port] [user] [database]
  • If you have not explicitly set up a port, it's usually 5432.

Backend

  • Change to backend folder
cd backend
  • In the backend folder, add file called configs with your database connection parameters. Copy from configs-example and fill in your credentials. The file looks like:
[dbname]
[username]
[password]  # if you do not have a password, leave an empty line
[host]      # if running on local -> "localhost"
[port]      # if not explicitly set up, leave an empty line
            # important to keep an empty new line here
  • (Optional) create your own virtual enviornment for the project:
python3 -m venv env; source env/bin/activate
  • Install the required python packages:
pip install -r ./requirements.txt
  • Run the application
python ./main.py

Frontend

Start the frontend server.

cd frontend
npm install
npm run startApp

Links in App

After running the application locally, below are some interesting links for some features to the app.

localhost:4200/getCourseInfo?course=cs%20488

Using psql

  • To connect with database, run:
psql -p [port] -U [user] -d [database] [-p password]
  • After connection, in psql, use

    • \l to list databases
    • \d to list databases
    • \c to connect to database
    • \q to exit postgres
    • Drop DATABASE [Database_name] to drop a database
    • CREATE DATABASE [Database_name] to create a database
  • Alternatively, run

psql -p [port] -U [user] -d [database] [-p password] -f [filename.sql]

to run a SQL file.

About

A web app for searching University course offerings with professor rating and degree requirements

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 28.7%
  • Python 26.7%
  • HTML 18.0%
  • Jupyter Notebook 16.4%
  • SCSS 7.5%
  • JavaScript 1.6%
  • Shell 1.1%