Giter Site home page Giter Site logo

alexwang000 / uw-schedulemaker Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 536 KB

A CS348 Project. Upload courses you took in the past and get suggestions on courses to take and more

Python 50.26% TSQL 0.29% HTML 1.74% CSS 0.68% JavaScript 47.04%
postgresql react flask

uw-schedulemaker's Introduction

uw-schedulemaker

A CS348 project

Upload courses you took in the past and get suggestions on courses to take and more demo

Group Members:

Ana Wan
Sunny Yang
Keat Chong
Yuetong Wang

For Developers

To test the app locally

The README.txt of the backend and frontend repo shows the instruction to run the app.

Database Creation

The queries for creating tables are located in the file /backend/database/createtables.sql. The backend app will execute that sql file which creates the tables for the SQL database.

Database Population

Using Google Cloud Shell and MySQL, the commands in /backend/database/sql/sampledataset.sql are executed manually.

How the Web app receives data from the SQL database

The backend grabs the data from SQL database in gcp (via sqlalchemy) and sends that data to the web app whenever the webapp executes a GET request to the backend API (on /courses route). The App can also send data to the backend using POST requests that will be used to update the table such as for adding a new user to AppUser

Web App link

https://cs348-webapp10.appspot.com/ Note: currently this does not work because our free trial for GCP expired.

Backend API link

https://cs348-database10.appspot.com/courses Note: currently this does not work because our free trial for GCP expired.

How to populate local database with sample data

For connecting to local database:

Steps:

brew install postgresql

pg_ctl -D /usr/local/var/postgres start && brew services start postgresql

psql postgres

Our database name is schedulemaker, type in this when posgres started:

postgres=# CREATE DATABASE schedulemaker

To run scripts for local database:

You can try this:

python3 ./database/scripts/execute_sql.py -f createtables -u yourUsername -p yourPassword

To Populate all data into local database:

python3 ./database/scripts/populate_tables.py -u yourUsername -p yourPassword

To Populate specific table into local database:

python3 ./database/scripts/populate_tables.py -t 'table_you_want_to_populate' -u yourUsername -p yourPassword

uw-schedulemaker's People

Contributors

ana-wan avatar edanerg avatar kc3cheng avatar sunnyyang27 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.