Skip to content
This repository has been archived by the owner on Jun 19, 2021. It is now read-only.

MarkHershey/SUTDHousingPortal

Repository files navigation

SUTD HousingPortal

Focusing on transparent application process and efficient events management, this is the proposed web-based Housing Portal MVP for SUTD.

Stack

Development

Dependencies

  • Backend development requires Linux/macOS as platform. (Uvicorn depends on uvloop which is not supported on Windows)
  • Python 3.6+
# At project root `YOUR/PATH/SUTDHousingPortal`
$ ./dev_setup.sh

Run backend server locally

# At project root `YOUR/PATH/SUTDHousingPortal`
# activate python virtual environment
$ source venv/bin/activate
# run local server
$ uvicorn src.api.main:app --reload

Check API documentation after firing up local server

Run backend server locally with Docker

  1. Install docker & docker-compose.

  2. Build

    docker-compose build
  3. Run

    docker-compose up -d
  4. Stop

    docker-compose down

Run tests

# At project root `YOUR/PATH/SUTDHousingPortal`
$ pytest

Dev Demo

Demo initialization

# config db
$ vim db_config

# Terminal Window 1: At project root `YOUR/PATH/SUTDHousingPortal`
$ source db_config
$ uvicorn src.api.main:app --reload

# Terminal Window 2: At project root `YOUR/PATH/SUTDHousingPortal`
$ source db_config
$ python src/api/data_migrations/demo_init.py

Demo accounts

Demo Admin
username: admin
password: pass1234

Demo HG
username: 1000000 ~ 1000005
password: 1000000 ~ 1000005

Demo Student
username: 1000006 ~ 1000030
password: 1000006 ~ 1000030

Developers

Disclaimers

  • MIT License Copyright (c) 2021
  • This application is developed to fulfill the course requirement of SUTD 50.003 Elements of Software Construction (2021 Spring).

Acknowledgement