Skip to main content

SC3020 Project-2

Project description

SC3020 Project

Installation

# Create a new conda environment
# Requires python>=3.9
# Upgrade pip if necessary
# python3 -m pip install --upgrade pip
conda create --name sc3020 python=3.11
conda activate sc3020

# Install the package
python -m pip install -e .

If you encountering any error when directly install the packages, you can also build the packages without any and then install the requirements from a txt file.

# Build only the sc3020 packages
python -m pip install --no-deps --no-cache-dir -e .

# Build the required requirements
python -m pip install -r requirements.txt

Config PostgreSQL

PostgreSQL is required to run the project. You can download it from here.

After installing PostgreSQL, you need to login to the user and create a database.

Here is an example.

We assume the user is the default user postgres.

psql -U postgres

And then we create a database named tpch.

CREATE DATABASE tpch;

You don't need to load the data into the database (or if you have done, it is better), because the project will download the data and load it into the database automatically. Make sure the database is served at the backend so that the application can connect to the database.

Run

A simple command to run the project:

# Use cli
sc3020

# Use python
python3 src/sc3020/project.py
# Or
python3 -m sc3020.project
# If you want to run the program as a python module

By default, the project will run on http://localhost:8000. You can then access localhost:8000 once you started the server. The default index page is a welcome page. Click the Go to Application button to actual go to the application. You can also direct access the localhost:8000/sc3020 to access the project.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sc3020_g6_2024-0.1.0.tar.gz (445.7 kB view details)

Uploaded Source

Built Distribution

sc3020_g6_2024-0.1.0-py3-none-any.whl (443.3 kB view details)

Uploaded Python 3

File details

Details for the file sc3020_g6_2024-0.1.0.tar.gz.

File metadata

  • Download URL: sc3020_g6_2024-0.1.0.tar.gz
  • Upload date:
  • Size: 445.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.10

File hashes

Hashes for sc3020_g6_2024-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8fcfc943b6ad067fb4f1f8271ab001475bb9a837595db3decbfd61bb2632a9db
MD5 1fbffc2f552471e9c7dcb1ace646bf0c
BLAKE2b-256 93a7e1b683ce54d12337473ce5908b111aed40a015f7aa0d10108962b0fca711

See more details on using hashes here.

File details

Details for the file sc3020_g6_2024-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sc3020_g6_2024-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ea2ae1517e0c83b8ec49f21062d0dc60efdbe541a16b0ecad56537566ccab2ec
MD5 1504ce175896c3733ea06d406d46823e
BLAKE2b-256 9ebee79a1302ec7e5976716c27e6d647b6c0600e3b8f7156748e051b08ed07a4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page