Coder Social home page Coder Social logo

green-portal's Introduction

TSCT Portal

Build Status

The unofficial learning management system for Thaddeus Stevens College of Technology built on Python, Flask, and PostgreSQL.

Installation

Create a virtual environment then install the project:

$ python3 -m venv venv
$ source venv/bin/activate
(venv) $ pip install -e .

Developer dependencies can be installed with:

(venv) $ pip install -e '.[test]'

Flask commands require the following environment variables to be set:

(venv) $ export FLASK_APP=portal
(venv) $ export FLASK_ENV=development

Database Setup

To run the application locally, you need a running instance of PostgreSQL. Create a database and user according to the configuration settings in portal/__init__.py. Then you can run the following command to create the necessary tables:

(venv) $ flask init-db

If you want to run tests, you'll have to create a second database according to the configuration in tests/conftest.py.

Running The App

(venv) $ flask run

Tests and Coverage

(venv) $ pytest
(venv) $ pytest -v
(venv) $ coverage run -m pytest

The first command will run the test functions defined in the tests/ directory. The second gives a more detailed output. Run the third command to generate a report of the code covered by the tests. You can view this report in the terminal with coverage report or with more detail in the browser with coverage html.

Create a User

(venv) $ flask create-user [email protected] password role

Users are created through the terminal, and can be made by giving the user's email address, the user's password, and the users role which can be either student or teacher.

green-portal's People

Contributors

jmorris-dev avatar snauman817 avatar tfink13 avatar dombouman avatar zachfedor avatar

Watchers

James Cloos avatar

Forkers

tfink13 dombouman

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.