File tree Expand file tree Collapse file tree 1 file changed +47
-1
lines changed
Expand file tree Collapse file tree 1 file changed +47
-1
lines changed Original file line number Diff line number Diff line change 1- * Coming soon to a repo near you*
1+ CSH Web Packet
2+ ==============
3+
4+ [ ![ Python 3.6] ( https://img.shields.io/badge/python-3.6-blue.svg )] ( https://www.python.org/downloads/release/python-360/ )
5+ [ ![ Build Status] ( https://travis-ci.org/ComputerScienceHouse/packet.svg?branch=develop )] ( https://travis-ci.org/ComputerScienceHouse/packet )
6+
7+ Web Packet is used by CSH to facilitate the evaluations of our members and keep track of packet signatures on the web
8+
9+ Authorization
10+ -------------
11+
12+ Authentication happens via pyOIDC with CSH SSO, authenticating as the user who is viewing the page.
13+ We have two different realms, and the site changes depending which realm is in use.
14+
15+ The server uses heavy caching via lru_cache to speed up the results as much as possible
16+
17+ Setup
18+ ------
19+
20+ For local development setup follow these steps:
21+
22+ 1 . ``` pip install -r requirements.txt ```
23+ 2 . ` Create config.py ` or set environment variables
24+ - Several of these variables require keys and information, please reach out to an RTP for testing information
25+ 3 . Run ` wsgi.py `
26+
27+
28+ Commands
29+ --------
30+
31+ The flask CLI provides all the methods needed to setup a packet and a packet season
32+
33+ ```
34+ create-packets Creates a new packet season for each of the freshmen in the given CSV.
35+ create-secret Generates a securely random token.
36+ db Perform database migrations.
37+ ldap-sync Updates the upper and misc sigs in the DB to match ldap.
38+ sync-freshmen Updates the freshmen entries in the DB to match the given CSV.
39+ ```
40+
41+ Code Standards
42+ ------------
43+
44+ Use Pylint to ensure your code follows standards. Commits will be pylinted by Travis CI, if your
45+ build fails you must fix whatever it tells you is wrong before it will be merged.
46+
47+ To check locally, run ``` pylint packet ```
You can’t perform that action at this time.
0 commit comments